Function at 0x4c5b00
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 0x4c5b4a
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 0x4c5db5
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 0x4c5ecd
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x98]
test edx, edx
jle 0x4c5d3d
lea ecx, [ebx + 5]
lea eax, [esi + 5]
mov edi, edx
mov edx, dword [esi]
xor edx, ebp
test edx, 0xffffff
je 0x4c5c4c
mov dl, byte [esi]
mov byte [ebx], dl
mov dl, byte [eax - 4]
mov byte [ecx - 4], dl
mov dl, byte [eax - 3]
mov byte [ecx - 3], dl
mov edx, dword [eax - 2]
xor edx, ebp
test edx, 0xffffff
je 0x4c5c69
mov dl, byte [eax - 2]
mov byte [ecx - 2], dl
mov dl, byte [eax - 1]
mov byte [ecx - 1], dl
mov dl, byte [eax]
mov byte [ecx], dl
mov edx, dword [eax + 1]
xor edx, ebp
test edx, 0xffffff
je 0x4c5c88
mov dl, byte [eax + 1]
mov byte [ecx + 1], dl
mov dl, byte [eax + 2]
mov byte [ecx + 2], dl
mov dl, byte [eax + 3]
mov byte [ecx + 3], dl
mov edx, ebp
xor edx, dword [eax + 4]
test edx, 0xffffff
je 0x4c5ca7
mov dl, byte [eax + 4]
mov byte [ecx + 4], dl
mov dl, byte [eax + 5]
mov byte [ecx + 5], dl
mov dl, byte [eax + 6]
mov byte [ecx + 6], dl
mov edx, dword [eax + 7]
xor edx, ebp
test edx, 0xffffff
je 0x4c5cc6
mov dl, byte [eax + 7]
mov byte [ecx + 7], dl
mov dl, byte [eax + 8]
mov byte [ecx + 8], dl
mov dl, byte [eax + 9]
mov byte [ecx + 9], dl
mov edx, dword [eax + 0xa]
xor edx, ebp
test edx, 0xffffff
je 0x4c5ce5
mov dl, byte [eax + 0xa]
mov byte [ecx + 0xa], dl
mov dl, byte [eax + 0xb]
mov byte [ecx + 0xb], dl
mov dl, byte [eax + 0xc]
mov byte [ecx + 0xc], dl
mov edx, dword [eax + 0xd]
xor edx, ebp
test edx, 0xffffff
je 0x4c5d04
mov dl, byte [eax + 0xd]
mov byte [ecx + 0xd], dl
mov dl, byte [eax + 0xe]
mov byte [ecx + 0xe], dl
mov dl, byte [eax + 0xf]
mov byte [ecx + 0xf], dl
mov edx, ebp
xor edx, dword [eax + 0x10]
test edx, 0xffffff
je 0x4c5d23
mov dl, byte [eax + 0x10]
mov byte [ecx + 0x10], dl
mov dl, byte [eax + 0x11]
mov byte [ecx + 0x11], dl
mov dl, byte [eax + 0x12]
mov byte [ecx + 0x12], dl
add ebx, 0x18
add ecx, 0x18
add esi, 0x18
add eax, 0x18
dec edi
jne 0x4c5c30
mov dword [esp + 0x80], ebx
mov edx, dword [esp + 0x94]
test edx, edx
jle 0x4c5d7d
mov edi, esi
mov ecx, esi
lea eax, [ebx + 1]
sub edi, ebx
mov ebx, dword [ecx]
xor ebx, ebp
test ebx, 0xffffff
je 0x4c5d6d
mov bl, byte [ecx]
mov byte [eax - 1], bl
mov bl, byte [edi + eax]
mov byte [eax], bl
mov bl, byte [ecx + 2]
mov byte [eax + 1], bl
add ecx, 3
add eax, 3
dec edx
jne 0x4c5d51
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 0x4c5c19
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 0x4c5ecd
lea ecx, [ebx + 2]
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 0x4c5e50
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 0x4c5e9a
mov ebp, edi
add ebx, dword [esp + 0x14]
js 0x4c5e6d
mov edx, dword [esp + 0x18]
add esi, 3
sub ebx, edx
mov edx, dword [esi]
xor edx, dword [esp + 0x8c]
test edx, 0xffffff
je 0x4c5e8e
mov dl, byte [esi]
mov byte [ecx - 2], dl
mov dl, byte [esi + 1]
mov byte [ecx - 1], dl
mov dl, byte [esi + 2]
mov byte [ecx], dl
mov edx, dword [esp + 0x1c]
add ecx, 3
add esi, edx
dec ebp
jne 0x4c5e5e
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 0x4c5e1e
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x68
ret