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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005b03c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov byte [esp + 8], cl
push ebx
push esi
push edi
test cl, cl
je 0x100371d8
mov dword [edx], 0
cmp dword [edx], 3
jge 0x10037453
mov esi, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xe5741311
inc dword [edx]
cmp dword [edx], 3
jl 0x100371c1
jmp 0x10037453
xor ebx, ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x24], 0x2070
cmp dword [esp + 0x24], 0x722
jge 0x10037445
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
push str._ld__ld
call fcn.1004351b
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x60]
add esp, 0xc
inc eax
push eax
call fcn.1003c545
xor edi, edi
mov dword [esp + 0x8c], ebx
mov esi, dword [esp + 0x18]
inc edi
cmp esi, edi
jle 0x10037272
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push str._ld__ld
call fcn.1004351b
imul ecx, dword [esp + 0x28], 0xc
lea eax, [esp + 0x2c]
add esp, 0xc
add ecx, dword [esp + 0x54]
push eax
call fcn.1003c5b1
imul ecx, dword [esp + 0x20], 0xc
lea eax, [esp + 0x1c]
push eax
add ecx, dword [esp + 0x58]
call fcn.1003c5b1
mov esi, dword [esp + 0x18]
inc edi
cmp edi, esi
jl 0x1003722c
inc esi
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x70], ebx
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], ebx
lea eax, [esi + 0x1f]
mov dword [esp + 0x7c], ebx
shr eax, 5
push eax
call fcn.1003c8fc
mov dword [esp + 0x7c], ebx
push esi
lea ecx, [esp + 0x74]
mov byte [esp + 0x90], 1
call fcn.1003c60d
mov byte [esp + 0x8c], 2
lea ecx, [esp + 0x2c]
mov eax, dword [esp + 0x18]
push ecx
inc eax
mov dword [esp + 0x30], ebx
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.1003c6c6
lea eax, [esp + 0x48]
mov byte [esp + 0x8c], 3
push eax
lea eax, [esp + 0x74]
xor ecx, ecx
push eax
lea edx, [esp + 0x5c]
inc ecx
call fcn.100370e8
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x38]
pop ecx
pop ecx
inc esi
mov dword [esp + 0x30], ebx
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea eax, [esi + 0x1f]
mov dword [esp + 0x6c], ebx
shr eax, 5
push eax
call fcn.1003c8fc
mov dword [esp + 0x6c], ebx
push esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x90], 4
call fcn.1003c60d
mov byte [esp + 0x8c], 5
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
push ecx
inc eax
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.1003c6c6
lea eax, [esp + 0x3c]
mov byte [esp + 0x8c], 6
push eax
lea eax, [esp + 0x64]
push eax
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x5c]
call fcn.100370e8
mov edi, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, ebx
cmp edi, 1
jl 0x100373b3
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
sub esi, eax
lea edx, [eax + 4]
mov eax, dword [edx]
cmp eax, dword [esi + edx]
jl 0x100373ad
add eax, eax
cmp ecx, eax
cmovle ecx, eax
add edx, 4
dec edi
jne 0x1003739f
push ecx
push str._ld_n
call fcn.100430bc
cmp dword [esp + 0x44], 0
pop ecx
pop ecx
je 0x100373dd
push dword [esp + 0x3c]
call fcn.10042db7
pop ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp dword [esp + 0x60], 0
mov dword [esp + 0x6c], ebx
je 0x100373fe
push dword [esp + 0x60]
call fcn.10042db7
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x48], 0
je 0x1003741b
push dword [esp + 0x48]
call fcn.10042db7
pop ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
cmp dword [esp + 0x70], 0
mov dword [esp + 0x7c], ebx
je 0x1003743c
push dword [esp + 0x70]
call fcn.10042db7
pop ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
lea ecx, [esp + 0x54]
call fcn.1003c692
cmp byte [esp + 0x13], 0
je 0x10037453
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret