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

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x70]
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, edi
mov dword [eax + 0xc], edx
call fcn.005c0b40
mov ecx, dword [edi + 0x15c]
add ecx, dword [edi + 0x55c]
mov eax, dword [edi + 0x158]
mov edx, dword [edi + 0x160]
mov esi, dword [edi + 0x164]
add eax, dword [edi + 0x558]
sub edx, dword [edi + 0x560]
sub esi, dword [edi + 0x564]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 0x578]
xor ebp, ebp
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], esi
cmp ecx, ebp
je 0x5d21b1
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x5d21b1
mov ecx, dword [edi + 0x578]
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
call edx
sub dword [esp + 0x78], eax
mov ecx, dword [edi + 0x57c]
cmp ecx, ebp
je 0x5d21da
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x5d21da
mov ecx, dword [edi + 0x57c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
call edx
sub dword [esp + 0x7c], eax
lea esi, [edi + 0x54c]
mov ecx, esi
call fcn.0059ca80
test eax, eax
jne 0x5d21f2
push ebp
push ebp
jmp 0x5d2661
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
sub ebx, dword [esp + 0x70]
sub eax, dword [esp + 0x74]
mov ecx, dword [edi + 0x57c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
cmp ecx, ebp
je 0x5d2233
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x5d2233
mov ecx, dword [edi + 0x57c]
call fcn.005d3350
add ebx, eax
mov dword [esp + 0x3c], ebx
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebx
call fcn.0059ca80
test eax, eax
jle 0x5d233a
push ebx
mov ecx, esi
call fcn.0059cac0
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x100]
mov ecx, esi
call edx
test al, al
je 0x5d2320
mov eax, dword [esi]
mov edx, dword [eax + 0x130]
mov ecx, esi
call edx
test al, al
jne 0x5d2320
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esi]
push ecx
push edx
mov edx, dword [eax + 0x154]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x38], 0
jne 0x5d22aa
inc dword [esp + 0x10]
jmp 0x5d22ee
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
cmp dword [esp + 0x38], eax
jge 0x5d22cc
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
call edx
cmp dword [esp + 0x38], eax
jle 0x5d22ee
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
call edx
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax + 4]
add eax, dword [ebx]
mov ebx, dword [esp + 0x24]
add eax, dword [esp + 0x38]
add ebp, eax
inc dword [esp + 0x18]
lea esi, [edi + 0x54c]
inc ebx
mov ecx, esi
mov dword [esp + 0x24], ebx
call fcn.0059ca80
cmp ebx, eax
jl 0x5d2250
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x568]
dec esi
imul ecx, esi
add ebp, ecx
mov ecx, dword [esp + 0x10]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
jle 0x5d237b
mov eax, dword [esp + 0x40]
sub eax, ebp
cdq
idiv ecx
xor edx, edx
cmp eax, ebx
setl dl
dec edx
and edx, eax
mov dword [esp + 0x2c], edx
mov ecx, dword [edi + 0x578]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x20], ebx
test ecx, ecx
je 0x5d23b0
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x5d23b0
mov ecx, dword [edi + 0x578]
call fcn.005d33d0
sub ebx, eax
mov dword [esp + 0x20], ebx
mov ecx, dword [edi + 0x57c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x5d23df
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x5d23df
mov ecx, dword [edi + 0x57c]
call fcn.005d33d0
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x1c], ecx
lea ecx, [edi + 0x54c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
call fcn.0059ca80
test eax, eax
jle 0x5d2651
mov edx, dword [esp + 0x18]
push edx
lea ecx, [edi + 0x54c]
call fcn.0059cac0
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x100]
mov ecx, esi
call edx
test al, al
je 0x5d2631
mov eax, dword [esi]
mov edx, dword [eax + 0x130]
mov ecx, esi
call edx
test al, al
je 0x5d2450
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 0x1f8]
push ecx
mov ecx, edi
call edx
jmp 0x5d2631
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
sub ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
mov edx, dword [esi]
mov edx, dword [edx + 0x154]
push ebp
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x54], ebp
call edx
cmp dword [esp + 0x38], 0
jne 0x5d24f8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
cmp eax, dword [esp + 0x10]
jne 0x5d24b2
sub ebp, dword [esp + 0x58]
mov edx, 0
sub ebp, dword [esp + 0x1c]
sets dl
dec edx
and edx, ebp
mov dword [esp + 0x38], edx
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
cmp dword [esp + 0x38], eax
jge 0x5d24d4
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
call edx
cmp dword [esp + 0x38], eax
jle 0x5d2544
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
call edx
mov dword [esp + 0x38], eax
jmp 0x5d2544
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
cmp dword [esp + 0x38], eax
jge 0x5d251a
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jle 0x5d2540
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
call edx
mov ecx, eax
mov dword [esp + 0x38], ecx
sub dword [esp + 0x1c], ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
mov ecx, esi
call edx
mov dword [esp + 0x34], eax
test eax, eax
jne 0x5d2567
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
test eax, eax
jge 0x5d2571
mov dword [esp + 0x34], 0
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
mov ecx, esi
call edx
cmp dword [esp + 0x34], eax
jge 0x5d258d
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
mov ecx, esi
call edx
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jle 0x5d25b3
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
mov ecx, eax
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
lea ebp, [edx + eax]
mov eax, dword [esp + 0x50]
add eax, ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
add edx, ecx
mov ecx, dword [esp + 0x38]
add edx, dword [esp + 0x14]
add eax, ecx
add eax, dword [esp + 0x50]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov ebp, dword [esp + 0x70]
mov dword [ecx + 4], ebp
add eax, ebx
mov ebx, dword [esi]
mov dword [ecx + 8], edx
mov edx, dword [ebx + 0x38]
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x58]
mov eax, dword [edi + 0x568]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
lea ebp, [eax + ecx]
add ebp, edx
add ebp, esi
add ebx, ebp
lea ebp, [ecx + edx]
add ebp, esi
add dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x48]
add eax, ecx
add eax, edx
mov dword [esp + 0x20], ebx
sub ebp, eax
mov esi, dword [esp + 0x18]
inc esi
lea ecx, [edi + 0x54c]
mov dword [esp + 0x18], esi
call fcn.0059ca80
cmp esi, eax
jl 0x5d2404
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0x568]
imul eax, esi
add eax, dword [esp + 0x24]
push eax
push 0
mov ecx, dword [esp + 0x78]
mov edx, dword [edi]
mov edx, dword [edx + 0x1fc]
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, edi
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10