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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push 0x10000
mov esi, 0x90312
call fcn.1001e470
mov ebp, dword [esp + 0x58]
add esp, 4
mov ebx, eax
xor edi, edi
cmp esi, 0x90312
je 0x1003724d
cmp esi, 0x80090318
je 0x1003724d
cmp esi, 0x90320
jne 0x10037415
test edi, edi
je 0x10037259
cmp esi, 0x80090318
jne 0x10037288
cmp byte [esp + 0x58], 0
je 0x10037283
mov eax, 0x10000
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp]
call fcn.1001d370
add esp, 0xc
test eax, eax
je 0x100373cd
add edi, eax
jmp 0x10037288
mov byte [esp + 0x58], 1
push 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x48], ebx
push eax
push 0
push 0
lea eax, [esp + 0x40]
mov dword [esp + 0x4c], edi
push eax
push 0x10
push 0
push 0xc11c
push 0
lea eax, [ebp + 0x10]
mov dword [esp + 0x64], 2
push eax
lea eax, [ebp + 8]
mov dword [esp + 0x78], 0
push eax
mov eax, dword [0x1006a944]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x60], 2
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 2
mov dword [esp + 0x44], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], 0
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003737e
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1003737e
test esi, esi
je 0x1003735e
cmp esi, 0x90312
je 0x1003735e
test esi, esi
jns 0x10037373
test dword [esp + 0x10], 0x4000
je 0x10037373
push eax
push ecx
push dword [ebp]
call fcn.1001d710
add esp, 0xc
test al, al
je 0x100373e3
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x1006a944]
push ecx
mov eax, dword [eax + 0x40]
call eax
cmp esi, 0x80090318
je 0x10037231
test esi, esi
je 0x1003743a
cmp esi, 0x80090325
jne 0x1003739e
xor esi, esi
jmp 0x100373a6
cmp esi, 0x90320
je 0x10037415
cmp dword [esp + 0x48], 5
jne 0x1003722f
mov eax, dword [esp + 0x44]
sub edi, eax
push eax
add edi, ebx
push edi
push ebx
call fcn.100476d0
mov edi, dword [esp + 0x50]
add esp, 0xc
jmp 0x10037231
push ebx
call fcn.1001e430
add esp, 4
mov eax, 0x80090304
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push ebx
call fcn.1001e430
mov eax, dword [0x1006a944]
add esp, 4
push dword [esp + 0x1c]
mov eax, dword [eax + 0x40]
call eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [0x1006a944]
mov eax, dword [eax + 0x24]
call eax
pop edi
pop esi
pop ebp
mov eax, 0x80090304
pop ebx
add esp, 0x40
ret
test esi, esi
jns 0x10037498
lea eax, [ebp + 0x10]
push eax
mov eax, dword [0x1006a944]
mov eax, dword [eax + 0x24]
call eax
push ebx
call fcn.1001e430
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp dword [esp + 0x48], 5
jne 0x10037480
push dword [esp + 0x44]
call fcn.1001e470
mov edx, dword [esp + 0x48]
sub edi, edx
mov ecx, dword [esp + 0x60]
add edi, ebx
push edx
push edi
push eax
mov dword [ecx + 8], eax
mov dword [ecx], edx
mov dword [ecx + 4], 2
call fcn.100476d0
add esp, 0x10
push ebx
call fcn.1001e430
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x5c]
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
push ebx
call fcn.1001e430
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret