Function at 0x10082a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
movsd xmm0, qword [0x105e46e8]
xor ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
push 0xff
mov eax, dword [ebp + 0x3e7a8]
push 0
mov dl, byte [eax + 0x4d]
push dword [eax + 0x48]
test dl, dl
mov byte [esp + 0x78], dl
sete cl
sub esp, 8
lea ecx, [ecx*2 + 1]
movsd qword [esp], xmm0
mov dword [esp + 0x28], ecx
call fcn.100c9e10
mov esi, dword [esp + 0x90]
mov dword [esp + 0x74], eax
mov ebx, dword [esp + 0x88]
push 1
movzx eax, byte [esi + 0x105e34e8]
movzx ecx, byte [esi + 0x105e34a0]
mov dword [esp + 0x60], eax
movzx eax, byte [esi + 0x105e34d0]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3adcc]
shl eax, 2
cdq
idiv ecx
movzx edi, byte [esi + 0x105e3488]
mov edx, dword [ebx]
mov ecx, edi
sar edx, cl
movzx ecx, byte [esi + 0x105e3470]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x90]
mov eax, edi
sub eax, edx
mov dword [esp + 0x58], 0
mov edx, dword [ebx + 8]
sar edx, cl
mov dword [esp + 0x30], edx
mov edx, 1
shl edx, cl
add edx, dword [ebx + 0xc]
sub edx, dword [ebx + 8]
dec edx
mov dword [esp + 0x44], eax
sar edx, cl
lea eax, [ebx + 0x5cd0]
push ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x68], eax
call fcn.1007f190
add esp, 0x1c
mov dword [esp + 0x38], eax
test eax, eax
jne 0x10082b57
mov ebx, dword [ebp + 0x3accc]
cmp ebx, 0xffffffff
je 0x10082b45
mov ebx, dword [ebp + ebx*4 + 0x3ad7c]
jmp 0x10082b47
xor ebx, ebx
lea eax, [ebx + 0x4c8]
neg ebx
sbb ebx, ebx
and ebx, eax
mov dword [esp + 0x38], ebx
push 4
push ebp
call fcn.1007f190
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
jne 0x10082b90
mov esi, dword [ebp + 0x3acd8]
cmp esi, 0xffffffff
je 0x10082b7e
mov esi, dword [ebp + esi*4 + 0x3ad7c]
jmp 0x10082b80
xor esi, esi
lea eax, [esi + 0x4c8]
neg esi
sbb esi, esi
and esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [ebp + 0x3acc8]
mov ecx, dword [esp + 0x18]
add eax, 0x4c8
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x24a40]
imul eax, edi
add ecx, eax
mov eax, ecx
shl eax, 4
sub eax, ecx
add edx, 0x110
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x916e4]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x916e8]
lea eax, [eax + ecx*4]
mov dword [esp + 0x64], eax
lea ecx, [ebx + 8]
mov eax, dword [edx - 0xc]
lea edx, [edx + 4]
mov dword [ecx + 4], eax
lea ecx, [ecx + 0x48]
mov eax, dword [edx - 4]
mov dword [ecx - 0x48], eax
mov eax, dword [edx + 0x14]
mov dword [ecx - 0x40], eax
mov eax, dword [edx + 0x20]
mov dword [ecx - 0x3c], eax
mov eax, dword [edx + 8]
mov dword [ecx - 0x4c], eax
sub esi, 1
jne 0x10082be5
mov eax, dword [ebp + 0x3eee0]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x20]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
shr ecx, 1
push dword [esp + 0x7c]
mov edx, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0xc]
cmp dword [ebx + 8], eax
mov ebx, dword [esp + 0x74]
cmovg esi, ecx
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x7c]
setne al
mov dword [esp + 0x2c], esi
imul edx, dword [esp + 0x24]
mov esi, dword [0x105d8814]
mov byte [ebx + 0x10b4], al
mov ebx, ecx
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x4c]
imul edi, ecx
imul edx, ecx
mov ecx, dword [esp + 0x40]
shl ebx, cl
mov ecx, 2
mov dword [esp + 0x60], eax
sub ecx, ebx
add edi, dword [esp + 0x1c]
imul edi, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, 0xfffffffe
sub eax, ebx
shl ecx, 2
shr edx, 2
sub eax, edx
mov dword [esp + 0x20], edi
mov edi, dword [ebp + 0x3ee78]
sub ecx, edi
shl eax, 2
cmp ecx, eax
mov dword [esp + 0x48], esi
push dword [esp + 0x18]
cmovg eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [ecx + 0x1e468], eax
mov ecx, dword [ebp + 0x3add4]
sub ecx, ebx
mov eax, ecx
sub eax, edx
add eax, 0xfffffffe
lea ecx, [ecx*4 + 8]
lea eax, [edi + eax*4]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esp + 0x78]
mov dword [eax + 0x1e46c], ecx
mov eax, dword [esp + 0x7c]
push dword [eax + 8]
push ebx
push dword [ebp + 0x3eee0]
mov ebx, dword [esp + 0x84]
push ebx
call fcn.1010fb10
push 0x200
push 0
push dword [ebx]
call fcn.10513d40
xor eax, eax
add esp, 0x24
mov dword [esp + 0x14], eax
cmp dword [esp + 0x30], eax
jle 0x10082ee6
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add ecx, 2
lea edi, [edx + ecx*8]
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x78]
sub ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x5c], ecx
nop dword [eax + eax]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x30]
add ecx, eax
mov eax, dword [ebp + 0x8f33c]
push dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
call eax
mov eax, dword [ebp]
add esp, 0xc
cmp dword [eax + 0x1098c], 1
jle 0x10082db4
push dword [ebp + 0x8f334]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x8f334]
mov bl, byte [ebp + 0x8f331]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x10082ee6
mov ebx, dword [esp + 0x70]
cmp dword [esp + 0x14], 0
jne 0x10082dc9
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 0x5cf0]
mov dword [esp + 0x3c], eax
lea eax, [edi - 0x10]
push eax
push dword [esp + 0x64]
push dword [esp + 0x84]
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0x34]
push dword [esp + 0x90]
push dword [esp + 0x90]
push dword [esp + 0x44]
push ebx
push ebp
call fcn.10083c90
mov cl, byte [ebp + 0x3abf0]
add esp, 0x2c
test cl, cl
je 0x10082e86
cmp cl, 2
je 0x10082e86
lea ecx, [edi - 0x10]
push ecx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push dword [esp + 0x74]
mov esi, dword [esp + 0x54]
push esi
push eax
push dword [esp + 0x98]
mov eax, dword [esp + 0x7c]
add eax, ecx
push eax
push dword [esp + 0x40]
push ecx
push dword [esp + 0x4c]
push dword [esp + 0xa8]
push dword [esp + 0x68]
push dword [esp + 0x70]
push ebx
push ebp
call fcn.10083700
add esp, 0x44
mov edx, eax
cmp dword [esp + 0x14], 0
jne 0x10082e73
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x5cf0], ecx
mov eax, edx
cdq
add dword [edi], eax
adc dword [edi + 4], edx
inc esi
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x44]
jmp 0x10082e92
cdq
add dword [edi + 8], eax
adc dword [edi + 0xc], edx
add dword [edi], eax
adc dword [edi + 4], edx
mov ecx, dword [esp + 0x48]
add dword [ebx + 0x18], ecx
cmp byte [esp + 0x6c], 0
mov eax, dword [esp + 0x28]
jne 0x10082ead
add dword [ebx + 0x60], eax
add dword [ebx + 0xa8], eax
push dword [esp + 0x30]
add dword [esp + 0x20], eax
add edi, 0x78
push dword [esp + 0x18]
mov eax, dword [ebp + 0x8f340]
push dword [esp + 0x34]
add dword [esp + 0x1c], ecx
push dword [esp + 0x58]
call eax
mov eax, dword [esp + 0x24]
add esp, 0x10
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x30]
jl 0x10082d60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret