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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov esi, dword [esp + 0x78]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov word [esp + 0x62], ax
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebx + 1]
call fcn.039f94f0
mov ebp, eax
mov eax, dword [esi + 0x10]
add esp, 4
sub eax, dword [esi + 0xc]
mov dword [esp + 0x3c], ebp
jne 0x39fa077
call fcn.03a01b13
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x60]
add eax, ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x39fa098
call fcn.03a01b13
mov ebp, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x4c], eax
cmp ebp, dword [edi + 0x10]
jbe 0x39fa0af
call fcn.03a01b13
mov eax, dword [esp + 0x4c]
mov ecx, dword [edi]
test eax, eax
je 0x39fa0b9
cmp eax, ecx
je 0x39fa0be
call fcn.03a01b13
mov ecx, ebx
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
push ebp
call fcn.039f9ef0
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
xor ebx, ebx
shr eax, 0x1f
add esp, 0xc
add eax, edx
mov dword [esp + 0x78], ebx
je 0x39fa6b3
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], 0x10
jmp 0x39fa119
mov ebx, dword [esp + 0x78]
cmp ebx, eax
jb 0x39fa122
call fcn.03a01b13
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + ebp]
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0x10]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x39fa14d
call fcn.03a01b13
mov ecx, dword [edi + 0xc]
lea eax, [ecx + ebp + 4]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea edx, [ebx*8 + 0x10]
push edx
mov eax, 0x10
call fcn.039f94f0
mov edx, eax
mov eax, dword [esi + 0x10]
add esp, 4
sub eax, dword [esi + 0xc]
mov dword [esp + 0x30], edx
mov word [esp + 0x62], bx
jne 0x39fa19c
call fcn.03a01b13
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
add eax, edx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
mov ebx, edx
mov edx, dword [esi + 0x10]
xor eax, eax
or ebx, 0x80000000
sub edx, dword [esi + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
jne 0x39fa1d1
call fcn.03a01b13
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [eax + ecx], edx
mov dword [eax + ecx + 4], ebx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0x10
lea esp, [esp]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x78], eax
jb 0x39fa224
call fcn.03a01b13
mov ebx, dword [edi + 0xc]
mov ecx, dword [ebx + ebp + 0x14]
sub ecx, dword [ebx + ebp + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x10]
mov eax, 0x92492493
jae 0x39fa685
sub ecx, ebx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x78], eax
jb 0x39fa26d
call fcn.03a01b13
mov ecx, dword [edi + 0xc]
lea ebx, [ecx + ebp + 4]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x39fa296
call fcn.03a01b13
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx + 0xa8]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea eax, [ebx*8 + 0x10]
push eax
mov eax, 0x10
mov dword [esp + 0x4c], ebx
call fcn.039f94f0
mov ecx, dword [esi + 0x10]
add esp, 4
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x24], eax
mov word [esp + 0x62], bx
jne 0x39fa2ec
call fcn.03a01b13
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x78], eax
jb 0x39fa332
call fcn.03a01b13
mov ecx, dword [edi + 0xc]
lea ebp, [ecx + ebp + 4]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x39fa35b
call fcn.03a01b13
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
movzx eax, word [ecx + edx]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esi + 0x10]
or ebp, 0x80000000
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x4c], eax
jne 0x39fa381
call fcn.03a01b13
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx], edx
mov dword [eax + ecx + 4], ebp
xor eax, eax
mov dword [esp + 0x20], eax
cmp ebx, eax
jbe 0x39fa66b
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0x10
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x78], eax
jb 0x39fa3d5
call fcn.03a01b13
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x1c]
lea ebx, [edx + ecx + 4]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x39fa402
call fcn.03a01b13
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x14]
lea ebx, [ecx + edx + 0xa8]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x39fa434
call fcn.03a01b13
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
mov ebx, dword [ecx + edx + 0x14]
sub ebx, dword [ecx + edx + 0x10]
lea eax, [ecx + edx + 4]
push 0x10
mov eax, 0x10
call fcn.039f94f0
mov dword [esp + 0x38], eax
push ebx
mov eax, 0x10
call fcn.039f94f0
xor ebp, ebp
add esp, 8
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
test ebx, ebx
je 0x39fa566
mov ecx, dword [esp + 0x7c]
add eax, ecx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov dword [esp + 0x64], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x78], eax
jb 0x39fa4a9
call fcn.03a01b13
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0xc]
lea ecx, [edx + ecx + 4]
mov edx, dword [ecx + 0x10]
sub edx, dword [ecx + 0xc]
mov eax, 0x2aaaaaab
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x10], eax
jb 0x39fa4de
call fcn.03a01b13
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx + 0xa8]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0x40], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x39fa514
call fcn.03a01b13
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + eax + 0x14]
sub ecx, dword [edx + eax + 0x10]
lea eax, [edx + eax + 4]
mov dword [esp + 0x40], eax
jne 0x39fa53a
call fcn.03a01b13
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x40], edx
jne 0x39fa54e
call fcn.03a01b13
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x40]
add edx, dword [esp + 0x44]
push ebx
push ecx
push edx
call fcn.03a014a0
add esp, 0xc
jmp 0x39fa56e
mov dword [esp + 0x64], 0
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
jne 0x39fa57b
call fcn.03a01b13
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x78], eax
jb 0x39fa5bf
call fcn.03a01b13
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x1c]
lea ebx, [edx + ecx + 4]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x39fa5ec
call fcn.03a01b13
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x14]
lea ebx, [ecx + edx + 0xa8]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov ebp, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x39fa620
call fcn.03a01b13
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
movzx ebx, word [ecx + edx]
jne 0x39fa638
call fcn.03a01b13
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
add dword [esp + 0x18], 0x1c
add eax, ecx
mov dword [eax + edx], ebx
mov ebx, dword [esp + 0x34]
inc ebp
add ecx, 8
mov dword [eax + edx + 4], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], ecx
cmp ebp, dword [esp + 0x48]
jb 0x39fa3b1
inc dword [esp + 0x10]
add dword [esp + 0x28], 8
add dword [esp + 0x14], 0xc0
mov ebp, dword [esp + 0x1c]
jmp 0x39fa200
sub ecx, dword [edi + 0xc]
mov ebx, dword [esp + 0x78]
add dword [esp + 0x2c], 8
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add ebp, 0x1c
add eax, edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x1c], ebp
cmp ebx, eax
jb 0x39fa115
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8