Function at 0x4c5720
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, 0x68
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov esi, dword [esp + 0x78]
push eax
push ecx
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x94]
push eax
push ecx
push edx
push esi
push ebp
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c576a
pop esi
mov eax, 1
pop ebp
add esp, 0x68
ret
mov ecx, dword [esi + 8]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x24]
sub edx, eax
imul eax, dword [esp + 0x94]
imul esi, ecx
push ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x40]
sub edi, ebx
lea ebp, [ecx + ecx*2]
lea ebx, [ebx + ebx*2]
add esi, ebp
mov ebp, dword [esp + 0x80]
add eax, ebx
mov ebx, dword [esp + 0x88]
add esi, dword [ebp + 4]
add eax, dword [ebx + 4]
mov ebx, eax
mov al, byte [esp + 0x24]
test al, al
mov dword [esp + 0x80], ebx
je 0x4c59d5
mov ebp, edi
mov eax, edi
sar ebp, 3
mov dword [esp + 0x98], ebp
mov ebp, dword [esp + 0x30]
and eax, 7
sub ecx, ebp
mov ebp, dword [esp + 0xa0]
add ecx, eax
mov dword [esp + 0x94], eax
sub eax, edi
lea ebp, [ebp + ecx*2]
add ecx, ebp
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x9c]
lea ecx, [ecx + eax*2]
add eax, ecx
test edx, edx
mov dword [esp + 0xa0], eax
jle 0x4c5aed
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x98]
test edx, edx
jle 0x4c595d
lea ecx, [ebx + 4]
lea eax, [esi + 4]
mov edi, edx
mov edx, dword [esi]
xor edx, ebp
test edx, 0xffffff
je 0x4c586c
mov dl, byte [eax - 2]
mov byte [ecx - 2], dl
mov dl, byte [eax - 3]
mov byte [ecx - 3], dl
mov dl, byte [esi]
mov byte [ebx], dl
mov edx, dword [eax - 1]
xor edx, ebp
test edx, 0xffffff
je 0x4c5889
mov dl, byte [eax + 1]
mov byte [ecx + 1], dl
mov dl, byte [eax]
mov byte [ecx], dl
mov dl, byte [eax - 1]
mov byte [ecx - 1], dl
mov edx, dword [eax + 2]
xor edx, ebp
test edx, 0xffffff
je 0x4c58a8
mov dl, byte [eax + 4]
mov byte [ecx + 4], dl
mov dl, byte [eax + 3]
mov byte [ecx + 3], dl
mov dl, byte [eax + 2]
mov byte [ecx + 2], dl
mov edx, ebp
xor edx, dword [eax + 5]
test edx, 0xffffff
je 0x4c58c7
mov dl, byte [eax + 7]
mov byte [ecx + 7], dl
mov dl, byte [eax + 6]
mov byte [ecx + 6], dl
mov dl, byte [eax + 5]
mov byte [ecx + 5], dl
mov edx, dword [eax + 8]
xor edx, ebp
test edx, 0xffffff
je 0x4c58e6
mov dl, byte [eax + 0xa]
mov byte [ecx + 0xa], dl
mov dl, byte [eax + 9]
mov byte [ecx + 9], dl
mov dl, byte [eax + 8]
mov byte [ecx + 8], dl
mov edx, dword [eax + 0xb]
xor edx, ebp
test edx, 0xffffff
je 0x4c5905
mov dl, byte [eax + 0xd]
mov byte [ecx + 0xd], dl
mov dl, byte [eax + 0xc]
mov byte [ecx + 0xc], dl
mov dl, byte [eax + 0xb]
mov byte [ecx + 0xb], dl
mov edx, dword [eax + 0xe]
xor edx, ebp
test edx, 0xffffff
je 0x4c5924
mov dl, byte [eax + 0x10]
mov byte [ecx + 0x10], dl
mov dl, byte [eax + 0xf]
mov byte [ecx + 0xf], dl
mov dl, byte [eax + 0xe]
mov byte [ecx + 0xe], dl
mov edx, ebp
xor edx, dword [eax + 0x11]
test edx, 0xffffff
je 0x4c5943
mov dl, byte [eax + 0x13]
mov byte [ecx + 0x13], dl
mov dl, byte [eax + 0x12]
mov byte [ecx + 0x12], dl
mov dl, byte [eax + 0x11]
mov byte [ecx + 0x11], dl
add ebx, 0x18
add ecx, 0x18
add esi, 0x18
add eax, 0x18
dec edi
jne 0x4c5850
mov dword [esp + 0x80], ebx
mov edx, dword [esp + 0x94]
test edx, edx
jle 0x4c599d
mov edi, esi
mov ecx, esi
lea eax, [ebx + 2]
sub edi, ebx
mov ebx, dword [ecx]
xor ebx, ebp
test ebx, 0xffffff
je 0x4c598d
mov bl, byte [edi + eax]
mov byte [eax], bl
mov bl, byte [ecx + 1]
mov byte [eax - 1], bl
mov bl, byte [ecx]
mov byte [eax - 2], bl
add ecx, 3
add eax, 3
dec edx
jne 0x4c5971
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x88]
add ebx, edx
add esi, ecx
dec eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], eax
jne 0x4c5839
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x68
ret
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x60]
lea eax, [eax + eax*2]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x90], ecx
imul eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x68]
test edx, edx
mov dword [esp + 0x80], ecx
jle 0x4c5aed
lea ecx, [ebx + 1]
mov dword [esp + 0x98], edx
mov dword [esp + 0x88], ecx
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x94]
add edx, ebx
mov dword [esp + 0x80], edx
js 0x4c5a70
mov ebp, dword [esp + 0xa0]
mov ebx, dword [esp + 0x90]
add esi, ebp
sub edx, ebx
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], esi
test edi, edi
jle 0x4c5aba
mov ebp, edi
add ebx, dword [esp + 0x14]
js 0x4c5a8d
mov edx, dword [esp + 0x18]
add esi, 3
sub ebx, edx
mov edx, dword [esi]
xor edx, dword [esp + 0x8c]
test edx, 0xffffff
je 0x4c5aae
mov dl, byte [esi + 2]
mov byte [ecx + 1], dl
mov dl, byte [esi + 1]
mov byte [ecx], dl
mov dl, byte [esi]
mov byte [ecx - 1], dl
mov edx, dword [esp + 0x1c]
add ecx, 3
add esi, edx
dec ebp
jne 0x4c5a7e
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
lea esi, [ecx + eax]
mov ecx, dword [esp + 0x88]
add ecx, ebx
dec edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x98], edx
jne 0x4c5a3e
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x68
ret