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

Disassembly:
sub esp, 0x84
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0x90]
mov eax, dword [esi]
mov ebp, dword [esi + 0xc]
mov byte [esp + 0xa], cl
mov dword [esp + 0xc], ecx
mov byte [esp + 0xb], cl
mov ecx, dword [esp + 0x98]
push edi
xor edi, edi
mov dword [esp + 0x20], eax
cmp ecx, 1
jbe 0x10039cad
movzx edx, word [eax + 0x122]
cmp ecx, edx
jbe 0x10039cad
lea eax, [edi + 0x15]
pop edi
pop esi
pop ebp
add esp, 0x84
ret
push ebx
mov ebx, dword [esp + 0x9c]
cmp ebx, dword [eax + 0x10]
jb 0x10039cca
pop ebx
pop edi
pop esi
mov eax, 0x10
pop ebp
add esp, 0x84
ret
test byte [esi + 0x10], 1
mov dword [esi + 0x14], ebx
jne 0x10039ce6
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jmp 0x10039cf3
mov eax, 0x10000
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
push esi
call fcn.100326f0
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0x80]
add esp, 4
cmp dword [eax + 0x34], edi
je 0x10039d9d
mov ecx, eax
mov eax, dword [ecx + 0x34]
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0xa0]
push ecx
mov ecx, dword [edx]
push eax
call ecx
mov edi, eax
xor eax, eax
add esp, 0xc
cmp edi, eax
jne 0x1003a21c
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
push edx
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x1f], 1
mov dword [esi + 0x1c], ecx
call fcn.10002e80
lea ecx, [esp + 0x78]
mov dword [esi + 0x18], ecx
jmp 0x10039db3
mov edx, dword [esp + 0x9c]
lea eax, [esi + 0x1c]
push eax
push edx
push ebx
call fcn.10032290
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x1c]
xor ecx, ecx
add esp, 0xc
cmp edx, ecx
jle 0x10039e29
mov edi, dword [esi + 0x54]
cmp edi, ecx
jne 0x10039dd9
mov eax, dword [ebx + 0x80]
cmp dword [eax + 0x34], ecx
jne 0x10039dd9
lea edi, [ecx + 8]
jmp 0x1003a1f9
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x200]
push edx
mov edx, dword [esp + 0xa0]
add edi, ecx
push edi
push edx
push esi
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1003a1f9
mov ecx, dword [ebx + 0x208]
push esi
mov byte [esp + 0x16], 1
call ecx
mov edi, eax
add esp, 4
test edi, edi
jne 0x1003a366
cmp byte [esp + 0xa4], al
jne 0x1003a366
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
je 0x1003a233
cmp word [esi + 0x20], cx
je 0x1003a233
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
add edx, eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0xb0]
mov dword [esi + 0x4c], edx
mov edx, dword [esi + 0x30]
add eax, edx
mov dword [esi + 0xbc], eax
sub eax, dword [esi + 0xb4]
mov dword [esi + 0x48], ecx
mov dword [esi + 0xc4], eax
mov eax, dword [esp + 0x9c]
push eax
mov dword [esi + 0x50], ecx
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xc0], ecx
call fcn.10032780
movzx eax, word [esi + 0x20]
add esp, 4
test ax, ax
jle 0x10039ed5
mov ecx, dword [ebx + 0x20c]
push esi
call ecx
mov edi, eax
add esp, 4
test edi, edi
jne 0x1003a35b
mov edx, dword [ebx + 0x204]
push esi
call edx
push esi
call fcn.10039810
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003a1f9
push ebp
call fcn.10001740
add esp, 4
jmp 0x1003a1f9
cmp ax, 0xffff
jne 0x1003a229
movsx eax, word [ebp + 0x16]
movsx ecx, word [ebp + 0x14]
mov edx, dword [ebx + 0x210]
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ecx
call edx
mov edi, eax
add esp, 4
test edi, edi
jne 0x1003a35b
mov eax, dword [esi + 0xa8]
mov ecx, dword [ebx + 0x204]
push esi
mov dword [esp + 0x38], eax
call ecx
add esp, 4
cmp byte [ebx + 0x2c4], 0
je 0x10039fe5
mov eax, dword [ebp + 0x54]
mov edx, dword [ebx + 0x64]
add eax, 4
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0xa0]
push ecx
push edx
mov eax, ebx
call fcn.10038dd0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003a1f9
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x54]
shl ecx, 5
add ecx, dword [ebp + 0x58]
mov dword [esp + 0x28], edx
test edx, edx
mov edx, dword [esp + 0x14]
jle 0x10039f94
add ecx, 8
test byte [ecx - 4], 2
je 0x10039f86
movsx ebx, word [edx + eax*8]
add dword [ecx], ebx
movsx ebx, word [edx + eax*8 + 4]
add dword [ecx + 4], ebx
inc eax
add ecx, 0x20
cmp eax, dword [esp + 0x28]
jl 0x10039f72
mov ebx, dword [esp + 0x24]
mov ecx, dword [edx + eax*8]
add dword [esi + 0x44], ecx
mov ecx, dword [edx + eax*8 + 4]
add dword [esi + 0x48], ecx
mov ecx, dword [edx + eax*8 + 8]
add dword [esi + 0x4c], ecx
mov ecx, dword [edx + eax*8 + 0xc]
add dword [esi + 0x50], ecx
mov ecx, dword [edx + eax*8 + 0x10]
add dword [esi + 0xb8], ecx
mov ecx, dword [edx + eax*8 + 0x14]
add dword [esi + 0xbc], ecx
mov ecx, dword [edx + eax*8 + 0x18]
add dword [esi + 0xc0], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + eax*8 + 0x1c]
add dword [esi + 0xc4], eax
push edx
push ecx
call fcn.10003890
add esp, 8
test byte [esi + 0x10], 1
jne 0x1003a03e
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x44]
push edx
push eax
call fcn.10001230
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x4c]
push ecx
push edx
mov dword [esi + 0x44], eax
call fcn.10001230
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.10001230
mov edx, dword [esp + 0x30]
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0xc4]
push edx
push eax
call fcn.10001230
add esp, 0x20
mov dword [esi + 0xc4], eax
test dword [esi + 0x10], 0x400
push ebp
je 0x1003a05f
call fcn.10001740
mov ecx, dword [esi + 8]
add esp, 4
mov dword [ecx + 0x48], 0x636f6d70
jmp 0x1003a1f9
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x54]
mov ecx, dword [esi + 0x18]
mov ebx, dword [ebp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
call fcn.10001740
add esp, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
jbe 0x1003a1ad
mov eax, dword [esp + 0xa0]
inc eax
shl ebx, 5
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
mov eax, dword [ebp + 0x34]
add eax, dword [esp + 0x14]
mov ebx, dword [esi + 0x44]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0xb8]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x64], edx
movsx edx, word [ebp + 0x16]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x2c]
push 0
mov dword [esp + 0x34], edx
mov edx, dword [eax]
push ecx
push edx
push esi
call fcn.10039c60
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1003a1f5
mov eax, dword [ebp + 0x34]
add eax, dword [esp + 0x14]
mov ecx, 0x200
mov dword [esp + 0x28], eax
test word [eax + 4], cx
jne 0x1003a177
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x48], edx
mov edx, dword [esp + 0x58]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x50], edx
mov edx, dword [esp + 0x60]
mov dword [esi + 0xb8], ecx
mov ecx, dword [esp + 0x64]
mov dword [esi + 0xbc], edx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x44], ebx
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xc4], edx
movsx ebx, word [ebp + 0x16]
mov ecx, dword [esp + 0x30]
cmp ebx, ecx
je 0x1003a193
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push eax
push esi
call fcn.10033040
add esp, 0x10
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x20
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x1003a0b5
jmp 0x1003a1b1
mov ebx, dword [esp + 0x30]
test byte [esi + 0x10], 2
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0xa8], ecx
jne 0x1003a1f5
mov eax, dword [esp + 0x28]
mov edx, 0x100
test word [eax + 4], dx
je 0x1003a1f5
mov eax, dword [esp + 0x20]
cmp ebx, eax
jbe 0x1003a1f5
mov ecx, dword [esp + 0x38]
push ecx
push eax
push esi
call fcn.10039a10
add esp, 0xc
mov ebx, dword [esp + 0x24]
cmp byte [esp + 0x13], 0
je 0x1003a21c
mov ecx, dword [ebx + 0x80]
mov eax, dword [ecx + 0x34]
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [edx + 4]
push eax
call ecx
add esp, 8
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x84
ret
mov edi, 0x14
jmp 0x1003a35b
cmp byte [esp + 0xa4], 0
mov dword [esi + 0x24], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], ecx
jne 0x1003a35b
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov edi, dword [esp + 0x9c]
neg eax
add edx, eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xbc], eax
sub eax, dword [esi + 0xb4]
push edi
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xc4], eax
call fcn.10032780
mov eax, dword [esi]
add esp, 4
cmp byte [eax + 0x2c4], 0
je 0x1003a308
mov ebp, dword [eax + 0x64]
push 4
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.10038dd0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003a35b
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
add dword [esi + 0x44], edx
mov ecx, dword [eax + 4]
add dword [esi + 0x48], ecx
mov edx, dword [eax + 8]
add dword [esi + 0x4c], edx
mov ecx, dword [eax + 0xc]
add dword [esi + 0x50], ecx
mov edx, dword [eax + 0x10]
add dword [esi + 0xb8], edx
mov ecx, dword [eax + 0x14]
add dword [esi + 0xbc], ecx
mov edx, dword [eax + 0x18]
add dword [esi + 0xc0], edx
mov ecx, dword [eax + 0x1c]
add dword [esi + 0xc4], ecx
push eax
push ebp
call fcn.10003890
add esp, 8
test byte [esi + 0x10], 1
jne 0x1003a359
mov edi, dword [esp + 0x1c]
mov edx, dword [esi + 0x44]
push edi
push edx
call fcn.10001230
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x4c]
push edi
push eax
call fcn.10001230
mov edi, dword [esp + 0x28]
mov ecx, dword [esi + 0xbc]
push edi
push ecx
mov dword [esi + 0x4c], eax
call fcn.10001230
mov edx, dword [esi + 0xc4]
push edi
push edx
mov dword [esi + 0xbc], eax
call fcn.10001230
add esp, 0x20
mov dword [esi + 0xc4], eax
xor edi, edi
cmp byte [esp + 0x12], 0
je 0x1003a1f9
mov eax, dword [ebx + 0x204]
push esi
call eax
add esp, 4
jmp 0x1003a1f9