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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x395eaa
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x3c508c]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00312bb0
mov dword [esp + 0xe0], 0
test byte [esp + 0x54], 0x30
jne 0x370453
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call dword [0x39a8cc]
lea ecx, [esp + 0x30]
call dword [0x39aa78]
lea ebx, [esp + 0x2c]
call fcn.0034db00
test al, al
jne 0x3704b1
mov edi, dword [esp + 0x5c]
mov esi, edi
test edi, edi
je 0x37046b
call fcn.0034bd50
push esi
call fcn.0038b024
add esp, 4
mov eax, dword [esp + 0x60]
mov esi, eax
test eax, eax
je 0x370483
call fcn.00349f00
push esi
call fcn.0038b024
add esp, 4
lea ecx, [esp + 0x30]
call dword [0x39ad2c]
lea ecx, [esp + 0x2c]
call dword [0x39ad2c]
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x90]
call dword [0x39ad28]
mov esi, dword [ebp + 8]
add esi, 0xc
mov byte [esp + 0xe0], 1
call fcn.0031f840
mov bl, 0x1a
push ecx
mov eax, esp
mov dword [eax], 0x39f34c
lea eax, [esp + 0x30]
mov dword [esp + 0xd4], esp
call fcn.0034cc00
test al, al
je 0x370a30
mov ecx, dword [esp + 0x38]
xor esi, esi
lea edx, [esp + 0x2c]
mov dword [esp + 0x84], 0x39f91c
mov dword [esp + 0x88], edx
cmp ecx, esi
je 0x37053e
cmp dword [esp + 0x48], 1
jne 0x37053e
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], ecx
push 0x39f6d4
lea ecx, [esp + 0x78]
mov byte [esp + 0xe4], 2
call dword [0x39a8d8]
lea edx, [esp + 0x74]
lea edi, [esp + 0x2c]
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 3
call fcn.00370aa0
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 5
call dword [0x39ad2c]
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], esi
jne 0x3705f8
lea ecx, [esp + 0x14]
call dword [0x39ad2c]
mov byte [esp + 0xe0], 1
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], 0x39f91c
cmp eax, esi
je 0x3704d3
mov edi, dword [esp + 0x60]
mov edi, dword [edi]
mov edx, dword [esp + 0x38]
mov ecx, eax
mov esi, eax
sar esi, 0x10
mov esi, dword [edi + esi*4]
and eax, 0xffff
shl eax, 5
mov eax, dword [esi + eax + 0x10]
xor esi, esi
mov dword [esp + 0x3c], edx
xor edx, edx
cmp ecx, esi
setne dl
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], edx
jmp 0x3704d3
push 0x39f35c
lea ecx, [esp + 0x80]
call dword [0x39a8d8]
lea edx, [esp + 0x7c]
lea edi, [esp + 0x2c]
lea ecx, [esp + 0xa0]
mov byte [esp + 0xe0], 6
call fcn.00370aa0
mov eax, dword [eax]
push eax
call dword [0x39a238]
add esp, 4
lea ecx, [esp + 0xa0]
mov esi, eax
call dword [0x39ad2c]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe0], 5
call dword [0x39ad2c]
test esi, esi
jle 0x370a00
push 0x39fddc
lea ecx, [esp + 0x84]
call dword [0x39a8d8]
lea edx, [esp + 0x80]
lea ecx, [esp + 0xb0]
mov byte [esp + 0xe0], 7
call fcn.00370aa0
lea ecx, [esp + 0x80]
mov byte [esp + 0xe0], 9
call dword [0x39ad2c]
push 0x39f368
lea ecx, [esp + 0x6c]
call dword [0x39a8d8]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x24]
mov byte [esp + 0xe0], 0xa
call fcn.00370aa0
lea ecx, [esp + 0x68]
mov byte [esp + 0xe0], 0xc
call dword [0x39ad2c]
push 0x39fe1c
lea ecx, [esp + 0x7c]
call dword [0x39a8d8]
lea edx, [esp + 0x78]
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe0], 0xd
call fcn.00370aa0
lea ecx, [esp + 0x78]
mov byte [esp + 0xe0], 0xf
call dword [0x39ad2c]
push 0x39fe0c
lea ecx, [esp + 0x74]
call dword [0x39a8d8]
lea edx, [esp + 0x70]
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe0], 0x10
call fcn.00370aa0
lea ecx, [esp + 0x70]
mov byte [esp + 0xe0], 0x12
call dword [0x39ad2c]
push 0x3ad9e0
lea ecx, [esp + 0x24]
call dword [0x39a8d8]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x13
call dword [0x39aa8c]
push 0x39f374
lea ecx, [esp + 0x2c]
call dword [0x39a8d8]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x64]
mov byte [esp + 0xe0], 0x14
call fcn.00370aa0
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 0x16
call dword [0x39ad2c]
mov eax, esi
cdq
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edx
push ecx
mov esi, 0x3ad9f4
lea edi, [esp + 0x9c]
call fcn.0032db50
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0xe4], 0x17
call fcn.003402b0
push 0x3ada20
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0x18
call dword [0x39a8d8]
lea ecx, [esp + 0x18]
call dword [0x39ad28]
lea eax, [esp + 0xa8]
push eax
mov esi, 0x3ada0c
lea edi, [esp + 0x90]
mov byte [esp + 0xe4], bl
call fcn.0032db50
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0x1b
call dword [0x39aa8c]
mov ecx, edi
mov byte [esp + 0xe0], bl
call dword [0x39ad2c]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x1c]
push 0x3acc5c
push edx
call dword [0x39acd0]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x20]
call fcn.00328ba0
add esp, 8
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0xe4], 0x1c
call dword [0x39a8cc]
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe0], bl
call dword [0x39ad2c]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x2c]
call fcn.00328ba0
add esp, 8
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0xe4], 0x1d
call dword [0x39a8cc]
lea ecx, [esp + 0x94]
mov byte [esp + 0xe0], bl
call dword [0x39ad2c]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xc4]
call dword [0x39a8cc]
push 0x3ada04
lea ecx, [esp + 0xc8]
call dword [0x39ab98]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xcc]
call dword [0x39a8cc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi + 8]
test edi, edi
jl 0x370a2b
lea ecx, [edi + 1]
call fcn.0031fb90
mov ecx, dword [esi + 4]
lea eax, [edi*8]
sub eax, edi
lea esi, [ecx + eax*4]
lea eax, [esp + 0xb4]
call fcn.00340550
lea ecx, [esp + 0x18]
call dword [0x39ad2c]
lea ecx, [esp + 0x1c]
call dword [0x39ad2c]
lea ecx, [esp + 0xcc]
mov dword [esp + 0xb4], 0x3a2cb8
call dword [0x39ad2c]
lea ecx, [esp + 0xc8]
call dword [0x39ad2c]
lea ecx, [esp + 0xc4]
call dword [0x39ad2c]
lea ecx, [esp + 0xc0]
call dword [0x39ad2c]
lea ecx, [esp + 0xbc]
call dword [0x39ad2c]
lea ecx, [esp + 0xb8]
call dword [0x39ad2c]
lea ecx, [esp + 0x98]
call dword [0x39ad2c]
lea ecx, [esp + 0x64]
call dword [0x39ad2c]
lea ecx, [esp + 0x20]
call dword [0x39ad2c]
lea ecx, [esp + 0x6c]
call dword [0x39ad2c]
lea ecx, [esp + 0x9c]
call dword [0x39ad2c]
lea ecx, [esp + 0x24]
call dword [0x39ad2c]
lea ecx, [esp + 0xb0]
call dword [0x39ad2c]
lea ecx, [esp + 0x14]
call dword [0x39ad2c]
mov byte [esp + 0xe0], 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x84], 0x39f91c
call fcn.0034da50
jmp 0x3704d3
call fcn.0038b3a8
lea ecx, [esp + 0x90]
call dword [0x39ad2c]
mov edi, dword [esp + 0x5c]
mov esi, edi
test edi, edi
je 0x370a55
call fcn.0034bd50
push esi
call fcn.0038b024
add esp, 4
mov eax, dword [esp + 0x60]
mov esi, eax
test eax, eax
je 0x370a6d
call fcn.00349f00
push esi
call fcn.0038b024
add esp, 4
lea ecx, [esp + 0x30]
call dword [0x39ad2c]
lea ecx, [esp + 0x2c]
call dword [0x39ad2c]
mov eax, 1
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc