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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
mov eax, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], esi
push edi
test esi, esi
jne 0x10039bfa
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x10039c0c
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 0x10]
xor edx, edx
mov ebx, dword [eax + 0x14]
xor eax, eax
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x44], ecx
cmp ax, word [esi]
jge 0x10039f5e
mov eax, dword [esi + 0xc]
movsx ecx, word [eax + ecx*2]
mov dword [esp + 0x40], ecx
test ecx, ecx
js 0x10039bec
mov eax, dword [esi + 4]
mov edi, 1
lea ecx, [eax + ecx*8]
lea esi, [eax + edx*8]
mov dword [esp + 0x20], ecx
mov eax, dword [esi]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 4]
shl edi, cl
mov ecx, edi
mov dword [esp + 0x1c], edi
imul ecx, eax
mov eax, edi
imul eax, edx
mov edx, dword [esp + 0x20]
sub ecx, ebx
sub eax, ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], eax
mov eax, dword [edx]
mov dword [esp + 0x2c], ecx
mov ecx, edi
imul ecx, eax
mov dword [esp + 0x30], eax
mov eax, edi
imul eax, dword [edx + 4]
sub ecx, ebx
mov dword [esp + 0x28], ecx
sub eax, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
movsx eax, byte [ecx]
and eax, 3
cmp eax, 2
je 0x10039bec
test eax, eax
jne 0x10039d29
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x18]
mov al, byte [eax + edi]
mov edi, dword [esp + 0x1c]
and al, 3
cmp al, 1
mov eax, dword [esp + 0x28]
jne 0x10039d03
sub edx, 8
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
jmp 0x10039d1d
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
sub esi, 8
mov dword [esp + 0x4c], eax
dec ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
mov edx, dword [ebp + 8]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x10039f60
mov edx, dword [esp + 0x20]
cmp esi, edx
jae 0x10039f25
nop dword [eax]
mov ecx, dword [esp + 0x14]
add esi, 8
inc ecx
mov dword [esp + 0x14], ecx
movsx eax, byte [ecx]
and eax, 3
sub eax, 0
je 0x10039e3c
sub eax, 1
je 0x10039e08
lea eax, [esi + 8]
cmp eax, edx
ja 0x10039bec
mov al, byte [ecx + 1]
and al, 3
cmp al, 2
jne 0x10039bec
mov eax, dword [esi]
add esi, 0x10
push dword [ebp + 8]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x40]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x6c], eax
mov eax, dword [esi - 0xc]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x70], eax
mov eax, dword [esi - 8]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x64], eax
mov eax, dword [esi - 4]
shl eax, cl
sub eax, ebx
cmp esi, edx
mov dword [esp + 0x68], eax
lea edx, [esp + 0x64]
ja 0x10039f69
mov eax, dword [esi]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x74], eax
mov eax, dword [esi + 4]
shl eax, cl
lea ecx, [esp + 0x6c]
sub eax, ebx
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x10039f60
jmp 0x10039f19
mov eax, dword [esi]
lea ecx, [esp + 0x78]
mov edx, dword [ebp + 8]
imul eax, edi
sub eax, ebx
mov dword [esp + 0x78], eax
mov eax, dword [esi + 4]
imul eax, edi
sub eax, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x10039f60
jmp 0x10039f19
mov edi, dword [esi]
imul edi, dword [esp + 0x1c]
sub edi, ebx
mov dword [esp + 0x50], edi
mov ebx, dword [esi + 4]
imul ebx, dword [esp + 0x1c]
sub ebx, dword [esp + 0x18]
mov dword [esp + 0x54], ebx
nop dword [eax]
cmp esi, edx
jae 0x10039f7d
movsx edx, byte [ecx + 1]
inc ecx
mov eax, dword [esi + 8]
add esi, 8
imul eax, dword [esp + 0x1c]
and edx, 3
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 4]
imul ecx, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x58], eax
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x5c], ecx
cmp edx, 1
je 0x10039ef9
test edx, edx
jne 0x10039bec
push dword [ebp + 8]
add eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x84], eax
lea eax, [ecx + ebx]
cdq
lea ecx, [esp + 0x54]
sub eax, edx
lea edx, [esp + 0x84]
sar eax, 1
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x10039f60
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x50], edi
jmp 0x10039e55
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x58]
push dword [ebp + 8]
lea ecx, [esp + 0x54]
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x10039f60
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
cmp esi, edx
jb 0x10039d50
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x10039f60
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
inc ecx
mov ebx, dword [esp + 0x18]
inc edx
movsx eax, word [esi]
mov dword [esp + 0x14], edx
mov dword [esp + 0x44], ecx
cmp ecx, eax
jl 0x10039c31
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x70]
mov eax, dword [eax + 0xc]
call eax
jmp 0x10039f35
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x48]
push dword [ebp + 8]
lea ecx, [esp + 0x54]
mov eax, dword [eax + 8]
call eax
jmp 0x10039f35