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

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0xa8
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x45613e
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0xcc]
push edx
push ecx
push eax
call fcn.004563f0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov ebp, dword [esp + 0xbc]
mov edx, dword [0x46b820]
mov dword [0x46b820], esi
mov ebx, dword [esp + 0xc8]
mov eax, dword [ebp]
mov dword [esp + 0x34], edx
imul eax, dword [ebp + 4]
imul eax, ebx
push eax
call sub.MSVCRT.dll_malloc
mov ecx, 4
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ecx
mov eax, 2
mov edi, 1
mov edx, 8
xor ecx, ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + ecx + 0x64]
mov edx, dword [ebp]
mov esi, dword [esp + ecx + 0x80]
sub edx, eax
mov dword [esp + 0x3c], eax
mov edi, dword [esp + ecx + 0x9c]
lea eax, [edx + esi - 1]
xor edx, edx
div esi
mov dword [esp + 0x2c], esi
mov edx, edi
mov dword [esp + 0x30], edi
mov esi, eax
mov eax, dword [esp + ecx + 0x48]
sub edx, eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x38], esi
lea eax, [edx + eax - 1]
xor edx, edx
div edi
test esi, esi
mov edi, eax
mov dword [esp + 0x44], edi
je 0x456399
test edi, edi
je 0x456399
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
push edi
push esi
push ebx
push ecx
push edx
push ebp
call fcn.004563f0
add esp, 0x18
test eax, eax
je 0x4563c9
test edi, edi
jle 0x456362
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], edi
mov ecx, dword [esp + eax + 0x48]
mov eax, esi
imul eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
test esi, esi
jle 0x45633b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], esi
mov edi, dword [ebp]
mov edx, dword [esp + 0x3c]
imul edi, dword [esp + 0x20]
add edi, edx
mov edx, dword [esp + 0x14]
add edi, edx
mov edx, dword [esp + 0x18]
imul edi, ebx
mov esi, dword [ebp + 0x20]
mov ecx, ebx
add edi, edx
mov edx, ecx
add esi, eax
add eax, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x24]
dec ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
jne 0x4562e2
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
add edx, eax
dec ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
jne 0x4562ce
mov eax, dword [ebp + 0x20]
push eax
call sub.MSVCRT.dll_free
imul esi, ebx
add esp, 4
inc esi
imul esi, edi
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
add ecx, esi
sub eax, esi
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc4], eax
add ecx, 4
cmp ecx, 0x1c
mov dword [esp + 0x10], ecx
jl 0x456227
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
pop edi
mov dword [ebp + 0x20], edx
pop esi
mov dword [0x46b820], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0xa8
ret
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret