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

Disassembly:
push 0xffffffffffffffff
push 0x5edee8
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd0]
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0xac], 0
mov eax, dword [ebp + 4]
test eax, eax
jne 0x4c537a
xor ecx, ecx
jmp 0x4c5382
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 4
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4c538d
xor eax, eax
jmp 0x4c5395
mov eax, dword [ebx + 8]
sub eax, edx
sar eax, 5
cmp ecx, eax
je 0x4c53f3
mov eax, 1
test byte [0x65b670], al
jne 0x4c53c3
or dword [0x65b670], eax
push 0x5fbd80
mov dword [0x65b674], 0x6155fc
call fcn.005b89dc
add esp, 4
mov eax, 0x85
mov ecx, 0x65b674
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [esp + 0xcc], 0x10
jb 0x4c53ec
mov eax, dword [esp + 0xb8]
push eax
call fcn.0059b877
add esp, 4
xor al, al
jmp 0x4c5728
lea ecx, [esp + 0xb4]
lea edi, [esp + 0x58]
call fcn.004a1410
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0xb8], 1
call fcn.0040b390
mov byte [esp + 0xac], 0
cmp dword [esp + 0x70], 0x10
jb 0x4c5438
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0059b877
add esp, 4
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x4c5445
call fcn.005b8b18
mov dword [esp + 0x1c], esi
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
mov dword [esp + 0x18], ebp
jbe 0x4c545a
call fcn.005b8b18
mov edi, esi
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x4c], esi
jbe 0x4c5471
call fcn.005b8b18
cmp edi, esi
je 0x4c570c
xor esi, esi
cmp edi, dword [ebx + 8]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
jb 0x4c5495
call fcn.005b8b18
test byte [edi + 0x18], 1
jne 0x4c5682
mov dword [esp + 0x40], esi
call fcn.005d95d0
cmp edi, dword [ebx + 8]
mov dword [esp + 0x44], eax
lea esi, [esp + 0x40]
lea ebp, [esp + 0x74]
jb 0x4c54be
call fcn.005b8b18
lea edx, [esp + 0x58]
push edx
call fcn.004ae920
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push ecx
mov edx, eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0xcc], 2
call fcn.004a0a90
add esp, 4
mov ebx, ebp
call fcn.0049fae0
add esp, 0x1c
mov byte [esp + 0xac], 0
cmp dword [esp + 0x70], 0x10
jb 0x4c5511
mov edx, dword [esp + 0x5c]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x40], 0
jne 0x4c5538
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
jmp 0x4c5540
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0xd4]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
and eax, 1
mov dword [esp + 0x20], eax
je 0x4c557b
cmp esi, dword [edi + 8]
jb 0x4c5562
call fcn.005b8b18
mov edx, dword [esp + 0x34]
cmp edx, dword [esi]
jne 0x4c56af
cmp ebx, dword [esi + 4]
jne 0x4c56af
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4c55a0
cmp esi, dword [edi + 8]
jb 0x4c5589
call fcn.005b8b18
cmp ebx, dword [esi + 4]
jl 0x4c56af
jg 0x4c55a0
mov eax, dword [esp + 0x34]
cmp eax, dword [esi]
jb 0x4c56af
test byte [esp + 0xd4], 2
jne 0x4c5676
cmp esi, dword [edi + 8]
jb 0x4c55b8
call fcn.005b8b18
mov ecx, dword [esi + 8]
or ecx, dword [esi + 0xc]
je 0x4c5676
cmp dword [esp + 0x20], 0
je 0x4c5625
cmp esi, dword [edi + 8]
jb 0x4c55d5
call fcn.005b8b18
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
add ecx, 1
adc eax, 0
cmp ebp, eax
jg 0x4c56ee
jl 0x4c55f5
cmp dword [esp + 0x24], ecx
ja 0x4c56ee
lea esi, [esp + 0x18]
call fcn.004f12e0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub ecx, 1
sbb eax, 0
cmp ebp, eax
jl 0x4c56ee
jg 0x4c561e
cmp dword [esp + 0x24], ecx
jb 0x4c56ee
cmp dword [esp + 0x20], 0
jne 0x4c5676
lea esi, [esp + 0x18]
call fcn.004f12e0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add ecx, 0x12c
adc eax, 0
cmp ebp, eax
jg 0x4c56ee
jl 0x4c5651
cmp dword [esp + 0x24], ecx
ja 0x4c56ee
lea esi, [esp + 0x18]
call fcn.004f12e0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub ecx, 1
sbb eax, 0
cmp ebp, eax
jl 0x4c56ee
jg 0x4c5676
cmp dword [esp + 0x24], ecx
jb 0x4c56ee
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x54]
cmp edi, dword [ebx + 8]
jb 0x4c568c
call fcn.005b8b18
mov edx, dword [esp + 0x1c]
add edi, 0x20
cmp edx, dword [ebp + 8]
mov dword [esp + 0x54], edi
jb 0x4c56a1
call fcn.005b8b18
add dword [esp + 0x1c], 0x10
mov esi, dword [esp + 0x4c]
jmp 0x4c5471
test byte [0x65b670], 1
jne 0x4c56d6
or dword [0x65b670], 1
push 0x5fbd80
mov dword [0x65b674], 0x6155fc
call fcn.005b89dc
add esp, 4
mov edx, dword [esp + 0x3c]
mov eax, 0x86
mov ecx, 0x65b674
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x4c53d2
mov esi, dword [esp + 0x3c]
push 0x87
call fcn.004b2660
lea ecx, [esp + 0xb4]
call fcn.0040b130
xor al, al
jmp 0x4c5728
cmp dword [esp + 0xcc], 0x10
jb 0x4c5726
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0059b877
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret