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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x515af8
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp]
call dword [eax + 0x14]
test eax, eax
je 0x4c77f8
mov eax, dword [esp + 0x78]
xor esi, esi
cmp eax, esi
jne 0x4c75cd
xor eax, eax
jmp 0x4c77f8
cmp byte [eax], 0
jne 0x4c75d9
xor eax, eax
jmp 0x4c77f8
cmp dword [ebp + 0xa8], 0x10
je 0x4c75e9
xor eax, eax
jmp 0x4c77f8
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x3c]
mov ebx, dword [ebp + 0x18]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov edi, 0x544004
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x24], ecx
mov edx, dword [ebp + 0x1c]
mov word [esp + 0x28], cx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x1c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x44], ebx
imul ebx, edx
mov ecx, eax
mov dword [esp + 0x40], edx
and ecx, 3
lea edx, [edx + edx*2]
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + ebx*2 + 0x3a]
push edx
mov dword [esp + 0x40], 0x28
mov word [esp + 0x4c], 1
mov word [esp + 0x4e], 0x18
mov dword [esp + 0x22], ecx
mov dword [esp + 0x2a], 0x3a
call fcn.00501a4d
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x4c77f8
push 0
mov ecx, ebp
call fcn.004c25d0
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x4c76af
push edi
call fcn.00501a89
add esp, 4
xor eax, eax
jmp 0x4c77f8
lea ecx, [esp + 0x2c]
call fcn.00502a4e
mov eax, dword [esp + 0x78]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x7c], 0
call fcn.00502bcd
test eax, eax
jne 0x4c7708
mov ebp, dword [ebp + 8]
push eax
push ebp
mov ecx, dword [ebp]
call dword [ecx + 0x80]
push edi
call fcn.00501a89
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00502aee
xor eax, eax
jmp 0x4c77f8
lea edx, [esp + 0x1c]
push 0xe
push edx
lea ecx, [esp + 0x34]
call fcn.00502d2f
lea eax, [esp + 0x3c]
push 0x2c
push eax
lea ecx, [esp + 0x34]
call fcn.00502d2f
mov ebx, dword [ebp + 0x18]
dec ebx
mov dword [esp + 0x14], ebx
js 0x4c77ca
jmp 0x4c773c
mov esi, dword [esp + 0x18]
mov edi, ebx
mov eax, dword [ebp + 0x1c]
imul edi, dword [ebp + 0x20]
add edi, esi
xor esi, esi
test eax, eax
jle 0x4c77a6
mov eax, dword [esp + 0x10]
mov dx, word [edi]
mov cx, word [0x5833d8]
mov ebx, edx
add edi, 2
shr bx, cl
mov ecx, dword [0x5833e4]
shl bl, cl
mov cx, word [0x5833dc]
mov byte [esp + 0x78], bl
mov ebx, edx
shr bx, cl
mov ecx, dword [0x5833e8]
shl bl, cl
mov ecx, dword [0x5833ec]
shl dl, cl
mov cl, byte [esp + 0x78]
inc eax
inc eax
mov byte [eax - 2], dl
mov byte [eax - 1], bl
mov byte [eax], cl
mov ecx, dword [ebp + 0x1c]
inc eax
inc esi
cmp esi, ecx
jl 0x4c7751
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x2c]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00502d2f
dec ebx
mov dword [esp + 0x14], ebx
jns 0x4c7738
mov edi, dword [esp + 0x10]
mov ebp, dword [ebp + 8]
push 0
push ebp
mov ecx, dword [ebp]
call dword [ecx + 0x80]
push edi
call fcn.00501a89
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00502aee
mov eax, 1
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 8