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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
movzx eax, word [esi + 0xc]
movzx ebx, word [esi + 0x3c]
push edi
xor ebp, ebp
push 0x94
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x68], 0x6c54f0
mov dword [esp + 0x6c], 0x25
mov dword [esp + 0x74], ebp
call fcn.005354dd
mov ecx, dword [esp + 0x6c]
mov edi, eax
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], edi
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov dword [esp + 0x70], 0x6c550c
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
call fcn.00543b40
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x40], edi
jbe 0x565055
mov eax, dword [esi]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x56]
push edx
lea ecx, [esp + 0x58]
push ecx
push edi
mov ecx, esi
call dword [eax + 0x48]
mov cx, word [esp + 0x50]
mov eax, dword [esp + 0x52]
cmp cx, ax
je 0x565046
mov dx, word [esp + 0x54]
cmp ax, dx
je 0x565046
cmp dx, cx
je 0x565046
mov edx, dword [esp + 0x84]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x48]
call fcn.00563dc0
movzx ecx, byte [esp + 0x7c]
mov eax, dword [esp + 0x70]
cmp eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ecx
jbe 0x565031
mov edx, dword [esp + 0x68]
xor eax, eax
test edx, edx
jbe 0x564c92
mov ecx, dword [esp + 0x6c]
cmp dword [ecx + eax*4], 0
jne 0x564df5
inc eax
cmp eax, edx
jb 0x564c83
xor eax, eax
mov ecx, eax
mov dword [esp + 0x2c], 0x7f7fffff
mov edi, edi
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x28], edx
jne 0x564cde
mov eax, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x68]
call dword [eax + 4]
mov esi, dword [esp + 0x68]
inc eax
cmp eax, esi
jae 0x564cdc
mov edx, dword [esp + 0x6c]
lea esp, [esp]
mov ecx, dword [edx + eax*4]
test ecx, ecx
jne 0x564cde
inc eax
cmp eax, esi
jb 0x564cd0
xor ecx, ecx
fld dword [esp + 0x28]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x564cf9
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], edi
test ecx, ecx
jne 0x564ca0
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
movzx edi, word [esp + eax*2 + 0x50]
mov eax, dword [esp + 0x5c]
test eax, eax
mov dword [esp + 0x30], edi
jne 0x564d3d
cmp eax, 1
je 0x564d3d
push 4
call fcn.005354dd
mov ecx, dword [esp + 0x5c]
push ecx
mov esi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 8
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 1
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x84]
mov dword [edx], edi
lea eax, [edi + edi*2]
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x24]
movzx eax, word [eax + edi*2]
test eax, eax
mov ebp, 1
mov dword [esp + 0x60], ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
jbe 0x564e6e
jmp 0x564d80
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
movzx ebx, word [ecx + edx*2 - 2]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
push 1
push eax
push ebx
call fcn.00542af0
test eax, eax
jne 0x564e6e
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0x34]
lea ecx, [ebx + ebx*2]
lea eax, [edx + ecx*4]
mov ecx, dword [esi + 8]
cmp ecx, dword [eax + 8]
jne 0x564e64
xor edx, edx
test ecx, ecx
jbe 0x564de3
mov eax, dword [eax]
mov esi, dword [esi]
sub esi, eax
nop
mov edi, dword [esi + eax]
cmp edi, dword [eax]
jne 0x564e64
inc edx
add eax, 8
cmp edx, ecx
jb 0x564dd0
mov eax, dword [esp + 0x5c]
cmp ebp, eax
jne 0x564e58
test eax, eax
jbe 0x564dfd
mov edi, eax
add edi, edi
jmp 0x564e02
mov eax, dword [ecx + eax*4]
jmp 0x564c94
mov edi, 1
cmp edi, dword [esp + 0x5c]
je 0x564e58
test edi, edi
jbe 0x564e41
lea eax, [edi*4]
push eax
call fcn.005354dd
add esp, 4
test ebp, ebp
mov esi, eax
jbe 0x564e43
mov ecx, dword [esp + 0x58]
sub ecx, esi
mov edx, ebp
lea ebx, [ebx]
mov ebp, dword [ecx + eax]
mov dword [eax], ebp
add eax, 4
dec edx
jne 0x564e30
mov ebp, dword [esp + 0x60]
jmp 0x564e43
xor esi, esi
mov ecx, dword [esp + 0x58]
push ecx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov edx, dword [esp + 0x58]
mov dword [edx + ebp*4], ebx
inc ebp
mov dword [esp + 0x60], ebp
dec dword [esp + 0x18]
jne 0x564d80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jae 0x564f6a
nop
mov eax, dword [esp + 0x14]
movzx ebx, word [eax + ecx*2 + 2]
mov ecx, dword [esp + 0x30]
push 1
push ecx
mov ecx, dword [esp + 0x80]
push ebx
call fcn.00542af0
test eax, eax
jne 0x564f6a
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + 8]
lea edx, [ebx + ebx*2]
lea eax, [eax + edx*4]
cmp ecx, dword [eax + 8]
jne 0x564f54
xor edx, edx
test ecx, ecx
jbe 0x564edf
mov eax, dword [eax]
mov esi, dword [esi]
sub esi, eax
mov edi, edi
mov edi, dword [esi + eax]
cmp edi, dword [eax]
jne 0x564f54
inc edx
add eax, 8
cmp edx, ecx
jb 0x564ed0
mov eax, dword [esp + 0x5c]
cmp ebp, eax
jne 0x564f48
test eax, eax
jbe 0x564ef1
mov edi, eax
add edi, edi
jmp 0x564ef6
mov edi, 1
cmp edi, dword [esp + 0x5c]
je 0x564f48
test edi, edi
jbe 0x564f31
lea ecx, [edi*4]
push ecx
call fcn.005354dd
add esp, 4
test ebp, ebp
mov esi, eax
jbe 0x564f33
mov ecx, dword [esp + 0x58]
sub ecx, esi
mov edx, ebp
mov edi, edi
mov ebp, dword [ecx + eax]
mov dword [eax], ebp
add eax, 4
dec edx
jne 0x564f20
mov ebp, dword [esp + 0x60]
jmp 0x564f33
xor esi, esi
mov edx, dword [esp + 0x58]
push edx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x58]
mov dword [eax + ebp*4], ebx
inc ebp
mov dword [esp + 0x60], ebp
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc ecx
dec eax
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jb 0x564e80
xor edi, edi
test ebp, ebp
jbe 0x564fe5
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx + edi*4]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x84]
mov esi, dword [eax + edx*4 + 8]
lea ecx, [eax + edx*4]
xor eax, eax
test esi, esi
jbe 0x564fe0
mov edx, dword [ecx]
cmp dword [edx], ebx
je 0x564fa3
inc eax
add edx, 8
cmp eax, dword [ecx + 8]
jb 0x564f94
jmp 0x564fe0
dec esi
cmp eax, esi
mov edx, eax
jae 0x564fca
lea ebx, [ebx]
mov eax, dword [ecx]
mov esi, dword [eax + edx*8 + 8]
lea eax, [eax + edx*8]
mov dword [eax], esi
mov esi, dword [eax + 0xc]
mov dword [eax + 4], esi
mov eax, dword [ecx + 8]
inc edx
dec eax
cmp edx, eax
jb 0x564fb0
mov edx, dword [ecx + 8]
dec edx
mov eax, edx
test eax, eax
mov dword [ecx + 8], edx
je 0x56510d
call fcn.005639d0
inc edi
cmp edi, ebp
jb 0x564f74
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 3
mov dword [esp + 0x20], eax
jb 0x564d01
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
dec eax
cmp eax, ecx
mov dword [esp + 0x38], eax
je 0x565031
lea ecx, [esp + 0x64]
call fcn.005c9df0
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.00563dc0
jmp 0x564c75
lea ecx, [esp + 0x64]
call fcn.005c9df0
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
inc edi
cmp edi, ebx
mov dword [esp + 0x40], edi
jb 0x564c01
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
jbe 0x5650b1
mov esi, dword [esp + 0x84]
movzx ebx, byte [esp + 0x80]
mov ebp, dword [sym.imp.MSVCR71.dll_qsort]
mov edx, eax
add esi, 8
mov dword [esp + 0x7c], edx
jmp 0x565080
mov eax, dword [esi]
cmp eax, ebx
jbe 0x5650a3
push 0x563670
push 8
push eax
mov eax, dword [esi - 8]
lea edi, [esi - 8]
push eax
call ebp
add esp, 0x10
mov ecx, edi
mov dword [esi], ebx
call fcn.005639d0
mov eax, dword [esp + 0x7c]
add esi, 0xc
dec eax
mov dword [esp + 0x7c], eax
jne 0x565080
mov ecx, dword [esp + 0x14]
push ecx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x60]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 0xc
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 0x6c550c
call fcn.005c9df0
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 0x6c54f0
call fcn.005c9df0
mov ecx, dword [esp + 0x6c]
push ecx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x64
ret 0x10
mov ecx, dword [esp + 0x14]
push ecx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x60]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 0xc
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 0x6c550c
call fcn.005c9df0
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 0x6c54f0
call fcn.005c9df0
mov ecx, dword [esp + 0x6c]
push ecx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret 0x10