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

Disassembly:
sub esp, 0xa8
push ebp
mov ebp, dword [esp + 0xb0]
push edi
xor edi, edi
cmp eax, edi
jne 0x4c5290
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0xbc]
push ecx
push ebx
push edx
push eax
push ebp
call fcn.004c48d0
add esp, 0x18
pop edi
pop ebp
add esp, 0xa8
ret
mov ecx, dword [0x51d688]
mov dword [0x51d688], edi
mov edx, dword [ebp]
imul edx, dword [ebp + 4]
imul edx, ebx
push esi
push edx
mov dword [esp + 0x34], ecx
call fcn.00483778
mov ecx, 2
mov edx, 8
mov esi, 1
mov dword [esp + 0x10], eax
mov eax, 4
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x24], edi
jmp 0x4c5370
mov eax, dword [esp + edi + 0x7c]
mov ecx, dword [esp + edi + 0x60]
mov edx, dword [ebp]
sub edx, eax
mov dword [esp + 0x34], eax
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
mov ecx, dword [esp + edi + 0x44]
mov edx, ecx
mov esi, eax
mov eax, dword [esp + edi + 0x98]
sub edx, eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 4]
lea eax, [edx + eax - 1]
xor edx, edx
div ecx
test esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x14], eax
je 0x4c54e9
test eax, eax
je 0x4c54e9
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
push eax
push esi
push ebx
push ecx
push edx
push ebp
call fcn.004c48d0
add esp, 0x18
test eax, eax
je 0x4c5519
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x20], eax
jle 0x4c54b4
mov ecx, esi
imul ecx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4c549b
mov ecx, dword [esp + edi + 0x44]
mov edx, dword [esp + 0x38]
imul ecx, eax
mov eax, dword [esp + edi + 0x60]
add ecx, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], esi
jmp 0x4c5440
mov edi, dword [ebp]
imul edi, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov esi, dword [ebp + 0x20]
add edi, edx
add edi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
imul edi, ebx
add edi, edx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
add esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x1c]
add eax, ebx
dec ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
jne 0x4c5440
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add edx, ecx
inc eax
mov dword [esp + 0x18], edx
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jl 0x4c5404
mov edx, dword [ebp + 0x20]
push edx
call fcn.00482838
imul esi, ebx
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
add esp, 4
inc esi
imul esi, dword [esp + 0x14]
add ecx, esi
sub eax, esi
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
add edi, 4
cmp edi, 0x1c
mov dword [esp + 0x24], edi
jl 0x4c5370
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
pop esi
mov dword [ebp + 0x20], ecx
pop edi
mov dword [0x51d688], edx
mov eax, 1
pop ebp
add esp, 0xa8
ret
mov eax, dword [esp + 0xc]
push eax
call fcn.00482838
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0xa8
ret