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

Disassembly:
sub esp, 0xe4
push ebx
mov ebx, dword [esp + 0xec]
mov eax, ebx
and eax, 0xfffff000
mov edx, dword [eax]
push ebp
mov ebp, dword [esp + 0xf8]
mov dword [esp + 0x44], ecx
push edi
mov edi, dword [edx + 0x128]
mov eax, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp]
mov eax, dword [ebp + 4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x90], edi
jg 0x5d1fab
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
inc edx
cmp edx, eax
jg 0x5d1fab
lea eax, [ebx + 0x30]
push eax
call fcn.005766ac
add esp, 4
test eax, eax
jne 0x5d1fb9
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0xe4
ret 0xc
push esi
lea eax, [esp + 0xb8]
push edi
push eax
call fcn.0057611c
lea ecx, [esp + 0x24]
push ecx
call fcn.00574ebc
mov eax, dword [ebx + 0x18]
add esp, 0xc
test eax, eax
mov esi, 7
je 0x5d1ffa
cmp dword [eax + 0x78], 2
jne 0x5d1ffa
push 1
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.005d134c
jmp 0x5d2119
mov ecx, ebx
call fcn.005c58bc
test eax, eax
je 0x5d2018
push 1
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.005d134c
jmp 0x5d2119
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5d2078
cmp dword [eax + 0x78], esi
jne 0x5d2043
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
movzx ecx, word [edx + 0x5a]
push ecx
lea edx, [eax + 0x10]
push edx
add eax, 0x3c
push eax
call fcn.0058692c
add esp, 0x10
jmp 0x5d2078
test eax, eax
je 0x5d2078
mov eax, dword [eax + 0x78]
cmp eax, 9
je 0x5d2078
cmp eax, 4
je 0x5d2078
push 0
mov ecx, ebx
call fcn.005c97dc
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x5d2119
jmp 0x5d208c
lea eax, [esp + 0x50]
push eax
call fcn.00574ebc
mov eax, dword [edi + 0x18]
add esp, 4
test eax, eax
je 0x5d20f9
cmp dword [eax + 0x78], esi
jne 0x5d20c4
mov edx, dword [edi + 4]
lea ecx, [esp + 0x50]
push ecx
movzx ecx, word [edx + 0x5a]
push ecx
lea edx, [eax + 0x10]
push edx
add eax, 0x3c
push eax
call fcn.0058692c
add esp, 0x10
jmp 0x5d20f9
test eax, eax
je 0x5d20f9
mov eax, dword [eax + 0x78]
cmp eax, 9
je 0x5d20f9
cmp eax, 4
je 0x5d20f9
push 0
mov ecx, edi
call fcn.005c97dc
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
push ecx
mov edx, eax
push edx
call fcn.00576fcc
mov edi, dword [edi + 0xc]
add esp, 0xc
test edi, edi
jne 0x5d208c
cmp dword [esp + 0x1c], 0x7ffffff
je 0x5d2485
fld qword [0x5f66c8]
sub esp, 8
mov ecx, esi
fstp qword [esp]
lea eax, [esp + 0x68]
lea esi, [ebx + 0x30]
lea edi, [esp + 0x68]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0057548c
add esp, 4
fld qword [0x5f66c8]
lea ecx, [esp + 0x68]
fstp qword [esp]
push ecx
call fcn.005754bc
add esp, 0xc
mov ecx, ebx
call fcn.005815fc
test eax, eax
je 0x5d2192
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x20]
mov cl, byte [eax + 0x129]
test cl, cl
jne 0x5d2192
lea ecx, [esp + 0x60]
push ecx
mov edx, ecx
push edx
add eax, 0x34c
push eax
call fcn.00575d0c
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ebx, dword [ebp + 4]
mov eax, dword [esp + 0x24]
mov esi, dword [ebp]
mov ecx, dword [esp + 0x1c]
mov edi, edx
sub edi, ebx
mov ebx, dword [ebp + 8]
sub ebx, eax
mov eax, dword [esp + 0x28]
sub eax, dword [ebp + 0xc]
sub esi, ecx
test esi, esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
jle 0x5d2485
test edi, edi
jle 0x5d2485
test ebx, ebx
jle 0x5d2485
test eax, eax
jle 0x5d2485
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.005755dc
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.005755dc
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x94], edx
add edx, ebx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x48]
mov ebp, edx
sub ebp, dword [esp + 0x30]
mov dword [esp + 0x68], eax
add eax, esi
mov dword [esp + 0x9c], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov eax, ecx
sub eax, edi
add ebp, esi
add esp, 0x18
inc ebp
cmp ebp, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x88], edx
jle 0x5d22d8
lea edx, [edi + esi + 1]
mov edi, dword [esp + 0x10]
push edx
sub ecx, edi
push ecx
call fcn.0062f83c
add esp, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
imul dword [esp + 0x90]
shrd eax, edx, 0x10
adc eax, 0
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
imul dword [esp + 0x8c]
shrd eax, edx, 0x10
adc eax, 0
mov edx, dword [esp + 0x2c]
sub edx, eax
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, edx
sub esi, eax
lea edi, [ecx + ebx + 1]
cmp edi, esi
jle 0x5d2338
lea eax, [eax + ebx + 1]
push eax
sub edx, ecx
push edx
call fcn.0062f83c
add esp, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
imul dword [esp + 0x48]
shrd eax, edx, 0x10
adc eax, 0
mov ecx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
imul dword [esp + 0x18]
shrd eax, edx, 0x10
adc eax, 0
mov edx, dword [esp + 0x30]
sub edx, eax
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x100]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xa8], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x28]
mov dword [esp + 0xb4], eax
add edi, 0x10
xor eax, eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0x18], eax
jmp 0x5d23ac
mov eax, dword [esp + 0x18]
lea esp, [esp]
mov ecx, dword [esp + eax + 0x7c]
mov edx, dword [esp + eax + 0x80]
mov ebx, dword [esp + eax + 0xa8]
mov ebp, dword [esp + eax + 0xac]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
xor esi, esi
jmp 0x5d23dc
mov eax, dword [esp + esi + 0x98]
mov ecx, dword [esp + esi + 0x9c]
mov edx, dword [esp + esi + 0x50]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + esi + 0x54]
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x94]
push eax
mov dword [esp + 0xe8], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xf0], ecx
push edi
lea ecx, [esp + 0xec]
mov dword [esp + 0xf8], edx
push ecx
lea edx, [esp + 0xe0]
push edx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebp
call fcn.0057652c
add esi, 4
add esp, 0x10
add edi, 0x1c
cmp esi, 0xc
jl 0x5d23dc
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0xc
mov dword [esp + 0x18], eax
jl 0x5d23a1
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 0xe4
ret 0xc
pop esi
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0xe4
ret 0xc