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

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
push edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [eax + 0xc], edx
call fcn.005b92f0
mov ecx, dword [ebx + 0x36c]
sub ecx, dword [ebx + 0x420]
mov esi, dword [ebx + 0x364]
mov edx, dword [ebx + 0x368]
mov eax, dword [ebx + 0x370]
add esi, dword [ebx + 0x418]
add edx, dword [ebx + 0x41c]
sub eax, dword [ebx + 0x424]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebx + 0x430]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
je 0x5d5226
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x5d5226
mov ecx, dword [ebx + 0x430]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
call edx
sub dword [esp + 0x78], eax
mov ecx, dword [ebx + 0x434]
cmp ecx, ebp
je 0x5d5252
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x5d5252
mov ecx, dword [ebx + 0x434]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
call edx
sub dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x408]
cmp eax, ebp
je 0x5d5269
mov ecx, dword [ebx + 0x40c]
sub ecx, eax
sar ecx, 2
jne 0x5d5270
push ebp
push ebp
jmp 0x5d553c
mov ecx, dword [ebx + 0x430]
cmp ecx, ebp
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x6c], edi
je 0x5d52b0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x5d52b0
mov eax, dword [ebx + 0x430]
sub esi, dword [eax + 0x40c]
mov dword [esp + 0x14], esi
mov ecx, dword [ebx + 0x434]
cmp ecx, ebp
je 0x5d52d8
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x5d52d8
mov ecx, dword [ebx + 0x434]
sub edi, dword [ecx + 0x40c]
mov dword [esp + 0x6c], edi
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
sub esi, dword [esp + 0x74]
mov ecx, dword [ebx + 0x434]
cmp ecx, ebp
mov edi, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
je 0x5d5322
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x5d5322
mov ecx, dword [ebx + 0x434]
add edi, dword [ecx + 0x408]
mov dword [esp + 0x40], edi
mov ecx, dword [ebx + 0x430]
cmp ecx, ebp
je 0x5d534a
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x5d534a
mov ecx, dword [ebx + 0x430]
add esi, dword [ecx + 0x408]
mov dword [esp + 0x44], esi
xor esi, esi
mov ecx, dword [ebx + 0x408]
test ecx, ecx
mov dword [esp + 0x18], esi
je 0x5d5532
mov eax, dword [ebx + 0x40c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x5d5532
test ecx, ecx
je 0x5d5384
mov eax, dword [ebx + 0x40c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x5d538a
call dword [0x6105e8]
mov edx, dword [ebx + 0x408]
mov ebp, dword [edx + esi*4]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc8]
mov ecx, ebp
call edx
test al, al
je 0x5d5526
mov eax, dword [ebp]
mov edx, dword [eax + 0x12c]
mov ecx, ebp
call edx
test al, al
jne 0x5d5514
mov eax, dword [ebp]
mov edx, dword [eax + 0x13c]
mov ecx, ebp
call edx
test al, al
jne 0x5d5514
mov eax, dword [ebp]
mov edx, dword [eax + 0x134]
mov ecx, ebp
call edx
test al, al
jne 0x5d5514
mov eax, dword [ebp]
mov edx, dword [eax + 0x90]
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp]
push ecx
push edx
mov edx, dword [eax + 0x98]
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call edx
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x5d5427
mov edx, edi
sub edx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov edi, dword [esp + 0x3c]
test edi, edi
mov ecx, dword [esp + 0x4c]
jne 0x5d5441
mov edi, dword [esp + 0x44]
sub edi, ecx
sub edi, dword [esp + 0x54]
mov dword [esp + 0x3c], edi
test byte [ebp + 0x298], 0x10
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
je 0x5d5469
mov eax, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x6c], eax
test byte [ebp + 0x298], 0x20
je 0x5d5481
mov eax, dword [esp + 0x34]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
add edx, esi
add esi, eax
add esi, dword [esp + 0x6c]
add edi, ecx
mov ecx, dword [esp + 0x5c]
add edi, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov eax, dword [ebp]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0xbc]
mov ecx, ebp
call edx
sub esi, dword [esp + 0x58]
cmp dword [esp + 0x20], esi
jg 0x5d54d8
mov dword [esp + 0x20], esi
sub edi, dword [esp + 0x5c]
cmp dword [esp + 0x1c], edi
jg 0x5d54e6
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 0x298]
test al, 0x10
je 0x5d54f8
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x6c], ecx
test al, 0x20
mov esi, dword [esp + 0x18]
je 0x5d5526
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], edx
add esi, 1
jmp 0x5d534c
mov eax, dword [ebx]
mov edx, dword [eax + 0x278]
lea ecx, [esp + 0x70]
push ecx
push ebp
mov ecx, ebx
call edx
mov edi, dword [esp + 0x40]
add esi, 1
jmp 0x5d534c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [ebx]
mov edx, dword [edx + 0x280]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 0xc], ecx
mov ecx, ebx
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x14