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

Disassembly:
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x84]
push eax
push ecx
mov ecx, dword [esp + 0x98]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
push ebx
push ebp
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c656d
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x3c]
imul edx, eax
push edi
mov edi, dword [esp + 0x44]
sub edi, ecx
mov ecx, dword [esp + 0x48]
sub ecx, esi
imul esi, dword [esp + 0x9c]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa4]
lea eax, [eax + edx*4]
add eax, dword [ebx + 4]
mov ebx, dword [esp + 0x3c]
lea ebx, [esi + ebx*4]
mov esi, dword [ebp + 4]
add ebx, esi
cmp byte [esp + 0x28], 0
mov dword [esp + 0xa4], ebx
je 0x4c6750
mov esi, edi
mov ebp, edi
sar esi, 3
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x34]
and ebp, 7
sub edx, esi
mov esi, dword [esp + 0xa0]
add edx, ebp
mov dword [esp + 0x94], ebp
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x84], edx
mov edx, ebp
sub edx, edi
test ecx, ecx
lea edx, [esi + edx*4]
mov dword [esp + 0x9c], edx
jle 0x4c6860
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x98]
test esi, esi
jle 0x4c66e9
mov edx, dword [eax]
mov edi, edx
xor edi, ecx
test edi, 0xffffff
je 0x4c6657
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov edi, edx
xor edi, ecx
test edi, 0xffffff
je 0x4c6669
mov dword [ebx + 4], edx
mov edx, dword [eax + 8]
mov edi, edx
xor edi, ecx
test edi, 0xffffff
je 0x4c667b
mov dword [ebx + 8], edx
mov edx, dword [eax + 0xc]
mov edi, edx
xor edi, ecx
test edi, 0xffffff
je 0x4c668d
mov dword [ebx + 0xc], edx
mov edx, dword [eax + 0x10]
mov edi, edx
xor edi, ecx
test edi, 0xffffff
je 0x4c669f
mov dword [ebx + 0x10], edx
mov edx, dword [eax + 0x14]
mov edi, edx
xor edi, ecx
test edi, 0xffffff
je 0x4c66b1
mov dword [ebx + 0x14], edx
mov edx, dword [eax + 0x18]
mov edi, edx
xor edi, ecx
test edi, 0xffffff
je 0x4c66c3
mov dword [ebx + 0x18], edx
mov edx, dword [eax + 0x1c]
mov edi, edx
xor edi, ecx
test edi, 0xffffff
je 0x4c66d5
mov dword [ebx + 0x1c], edx
add ebx, 0x20
add eax, 0x20
dec esi
jne 0x4c6647
mov dword [esp + 0xa4], ebx
test ebp, ebp
jle 0x4c6718
mov edi, ebx
mov edx, eax
sub edi, eax
mov esi, dword [edx]
mov ebx, esi
xor ebx, ecx
test ebx, 0xffffff
je 0x4c6704
mov dword [edi + edx], esi
add edx, 4
dec ebp
jne 0x4c66f3
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x94]
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0x84]
mov edx, dword [esp + 0xa0]
add ebx, edi
add eax, esi
dec edx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], edx
jne 0x4c6638
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x5c]
shl edx, 2
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xa0]
imul edx, dword [esp + 0x78]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x6c]
test ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xa4], esi
jle 0x4c6860
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x84]
add ecx, esi
mov dword [esp + 0xa4], ecx
js 0x4c67e5
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x8c]
add eax, ebp
sub ecx, esi
mov dword [esp + 0xa4], ecx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], eax
test edi, edi
jle 0x4c683c
mov esi, ebx
mov dword [esp + 0x98], edi
add ebp, dword [esp + 0x14]
js 0x4c6809
mov ecx, dword [esp + 0x18]
add eax, 4
sub ebp, ecx
mov edx, dword [eax]
mov ecx, edx
xor ecx, dword [esp + 0x90]
test ecx, 0xffffff
je 0x4c681e
mov dword [esi], edx
mov ecx, dword [esp + 0x1c]
add esi, 4
add eax, ecx
mov ecx, dword [esp + 0x98]
dec ecx
mov dword [esp + 0x98], ecx
jne 0x4c67fa
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
add eax, edx
add ebx, esi
dec ecx
mov dword [esp + 0x94], ecx
jne 0x4c67b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret