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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10059713
push eax
mov dword fs:[0], esp
sub esp, 0x90
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
je 0x10037e24
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov edi, dword [ebp + 8]
mov dword [esp + 0xa4], ebx
cmp dword [edi + 0x10], ebx
je 0x10037d5e
push 0x2e
pop eax
push 2
mov ecx, ebx
mov dword [esp + 0x1c], 0xe7021e00
mov byte [esp + 0x20], 0x31
mov word [esp + 0x10], ax
pop esi
mov dword [esp + 0x14], ecx
cmp esi, 2
jne 0x10037be4
push 3
pop ecx
push ecx
mov dword [esp + 0x18], ecx
pop esi
jmp 0x10037c25
movzx edx, byte [esp + esi + 0x19]
mov eax, esi
sub eax, ecx
push 0x618c
movzx eax, byte [esp + eax + 0x1a]
movzx eax, word [esp + eax*2 + 0x10]
mov ecx, eax
and eax, edx
or ecx, edx
mov edx, 0x4ec
sub ecx, eax
movzx eax, byte [esp + esi + 0x1c]
mov word [esp + eax*2 + 0x10], cx
lea eax, [esp + 0x18]
push eax
xor cl, cl
call fcn.10038e97
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
add esi, 2
cmp esi, 5
jb 0x10037bd4
xor eax, eax
mov dword [esp + 0x54], ebx
push 7
mov word [esp + 0x12], ax
lea ecx, [esp + 0x48]
pop esi
mov word [esp + 0x44], ax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x5c], esi
call fcn.1000ed02
lea eax, [esp + 0x44]
mov byte [esp + 0xa4], 1
push eax
mov edx, edi
lea ecx, [esp + 0x30]
call fcn.10036f2d
pop ecx
push ebx
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xac], 3
call fcn.10004836
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
push 0x18
cdq
pop ecx
idiv ecx
mov dword [esp + 0xc], ebx
test eax, eax
jne 0x10037d39
push 0x2d
pop eax
mov word [esp + 0x10], ax
lea ecx, [esp + 0x5c]
xor eax, eax
mov word [esp + 0x20], 0x1600
mov word [esp + 0x12], ax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
call fcn.1000ed02
lea eax, [esp + 0x5c]
mov byte [esp + 0xa4], 4
push eax
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.10036f2d
pop ecx
mov esi, eax
lea eax, [esp + 0x2c]
cmp eax, esi
je 0x10037d18
mov ecx, eax
call fcn.1003abe1
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x34], eax
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2a], bl
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea ecx, [esp + 0x74]
call fcn.1003abe1
push ebx
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0xac], 3
call fcn.10004836
mov dword [esp + 0x10], ebx
push ecx
lea eax, [esp + 0x3c]
push eax
sub esp, 0xc
lea ecx, [esp + 0x40]
call fcn.100384c0
add esp, 0x14
mov byte [esp + 0xa4], bl
lea ecx, [esp + 0x2c]
call fcn.1003abe1
mov dword [esp + 0x24], 0x7573
cmp dword [esp + 0x24], 0x760d
jle 0x10037e0c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0x582f
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, ebx
xor esi, esi
cdq
mov ebx, 0x52e1
idiv edi
mov dword [esp + 0x24], edx
mov edi, edx
mov eax, esi
lea ecx, [esp + 0x80]
cdq
push edx
push eax
call fcn.10001331
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10037db7
mov eax, dword [eax]
push eax
call fcn.10040c20
pop ecx
push 0
push 1
lea ecx, [esp + 0x88]
call fcn.10001542
add esi, edi
dec ebx
jne 0x10037d9c
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
cmp edi, 0x3aa8
jl 0x10037d8a
mov esi, dword [esp + 0x20]
add ebx, esi
dec dword [esp + 0xc]
mov dword [esp + 0x14], ebx
jne 0x10037d84
inc esi
mov dword [esp + 0x20], esi
push 0
pop ebx
cmp esi, 0x112b
jl 0x10037d78
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x38]
push eax
call fcn.1003aa5f
lea ecx, [esp + 0x38]
call fcn.1003acba
jmp 0x10037e47
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [edx], 1
jge 0x10037e47
mov esi, dword [ebp + 0x1c]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0x95761be3
inc dword [edx]
cmp dword [edx], 1
jl 0x10037e35
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret