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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62e9ef
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x24], edi
test eax, eax
jne 0x4c5f8f
lea ecx, [esp + 0x34]
call dword [0x660330]
mov dword [esp + 0x2f0], 0
mov dword [esp + 0x34], 0x40cc48
mov dword [esp + 0x40], 0x40cb40
mov dword [esp + 0x2f0], 0xffffffff
lea eax, [esp + 0x34]
push 0x651bb0
push eax
call 0x5a4c84
test ecx, ecx
je 0x4c5fda
test edx, edx
jne 0x4c601d
lea ecx, [esp + 0x34]
call dword [0x660330]
mov dword [esp + 0x2f0], 1
mov dword [esp + 0x34], 0x40cc48
mov dword [esp + 0x40], 0x40bbf0
mov dword [esp + 0x2f0], 0xffffffff
lea eax, [esp + 0x34]
push 0x651bb0
push eax
call 0x5a4c84
test edx, edx
je 0x4c601d
lea ecx, [esp + 0x34]
call dword [0x660330]
mov dword [esp + 0x2f0], 2
mov dword [esp + 0x34], 0x40cc48
mov dword [esp + 0x40], 0x40bbf0
mov dword [esp + 0x2f0], 0xffffffff
lea eax, [esp + 0x34]
push 0x651bb0
push eax
call 0x5a4c84
lea ecx, [esp + 0xa0]
push ecx
mov ecx, eax
call 0x3dc29e
mov dword [esp + 0x2f0], 3
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], 0
mov dword [ecx], 0
lea ecx, [esp + 0xa4]
mov dword [eax], 0
mov eax, dword [esp + 0x5c]
mov dword [edi], 0
mov dword [eax], 0
mov eax, dword [esp + 0xa4]
mov dword [esi], 0
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4c63e1
mov eax, dword [esp + 0x1c]
and eax, 0x20
mov dword [esp + 0x88], eax
jmp 0x4c609e
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0xa4]
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [esp + eax + 0xa4]
call dword [edx + 8]
cmp dword [esp + 0x88], 0
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x94], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x9c], eax
je 0x4c6118
mov ecx, dword [esi + 0x50]
call 0x3dc91e
test eax, eax
jne 0x4c6118
mov ecx, esi
call 0x3fbafe
cmp byte [eax], 0x1f
je 0x4c6118
mov al, byte [esi + 0x78]
not al
test al, 1
jne 0x4c6118
cmp byte [esi], 0xc
jne 0x4c63a7
mov eax, dword [esp + 0x1c]
test al, 0x40
je 0x4c6134
mov ecx, esi
call 0x3fbafe
cmp byte [eax], 0x1f
je 0x4c63a7
mov eax, dword [esp + 0x1c]
test al, 8
je 0x4c6141
cmp byte [esi], 0xc
je 0x4c63a7
xor eax, eax
mov byte [esp + 0x34], 0
lea ecx, [esp + 0x94]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], eax
call 0x3e5e6e
test ebx, ebx
je 0x4c617f
cmp eax, ebx
je 0x4c617f
mov eax, dword [esp + 0x5c]
inc dword [eax]
jmp 0x4c63a7
lea eax, [esp + 0x17]
mov dword [esp + 0x7c], 0
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0
push eax
lea eax, [esp + 0x84]
mov byte [esp + 0x1f], 0
push eax
mov ecx, esi
call 0x3e406e
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x7c]
jb 0x4c61e3
mov edi, dword [esp + 0x6c]
cmp ecx, edi
jbe 0x4c61c6
cmp byte [esp + 0x17], 0
je 0x4c61df
mov eax, dword [esp + 0x1c]
test al, 1
je 0x4c61d2
cmp ecx, edi
jb 0x4c61df
and eax, 2
mov dword [esp + 0x6c], eax
je 0x4c61ea
cmp ecx, edi
jbe 0x4c61ea
mov edi, dword [esp + 0x24]
inc dword [edi]
jmp 0x4c63a7
mov eax, dword [esp + 0x80]
test ebx, ebx
je 0x4c6229
test eax, eax
jne 0x4c622d
mov ecx, dword [esp + 0x20]
push eax
push eax
push ebx
push dword [esp + 0x74]
lea ecx, [ecx + 0x6c]
push esi
push eax
call fcn.004186fe
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x4c], 0
jmp 0x4c627a
test eax, eax
je 0x4c627e
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x34], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ecx
test ebx, ebx
je 0x4c627a
push esi
push dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x78]
call 0x3dba6e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x70], 0
je 0x4c62aa
cmp dword [esp + 0x48], 0
jne 0x4c62aa
test ebx, ebx
jne 0x4c62aa
push ecx
push dword [esp + 0x2c]
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0xec]
call fcn.004c6b0e
mov al, byte [esp + 0x17]
mov edx, dword [esp + 0x18]
test al, al
je 0x4c62ba
cmp edx, edi
jne 0x4c6330
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov edi, dword [esp + 0x5c]
mov eax, esp
push dword [esp + 0x68]
mov dword [eax], ecx
push dword [esp + 0x8c]
mov ecx, dword [esp + 0x44]
push 1
push dword [esp + 0x7c]
mov dword [eax + 4], edi
push dword [esp + 0x50]
mov dword [eax + 8], ecx
push dword [esp + 0x74]
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x48]
push dword [eax]
push dword [esp + 0x48]
push ebx
push dword [esp + 0x88]
push edx
push dword [esp + 0x84]
push dword [esp + 0x68]
push 0
push esi
call fcn.004c559e
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov al, byte [esp + 0x17]
jmp 0x4c6334
mov edi, dword [esp + 0x4c]
test al, al
je 0x4c63a3
cmp dword [esp + 0x6c], 0
jne 0x4c63a3
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x68]
mov dword [eax], ecx
push dword [esp + 0x8c]
mov ecx, dword [esp + 0x44]
push 1
push dword [esp + 0x7c]
mov dword [eax + 4], edi
push dword [esp + 0x50]
mov edi, dword [esp + 0x68]
push dword [esp + 0x74]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x8c]
push dword [edi]
mov dword [eax + 0xc], ecx
push dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
push ebx
push dword [esp + 0x88]
push edx
push dword [esp + 0x84]
push dword [esp + 0x68]
push 1
push esi
call fcn.004c559e
mov dword [edi], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0xa4]
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [esp + eax + 0xa4]
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x4c609e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c63e1
mov edx, dword [esp + 0x28]
mov ecx, eax
call fcn.004c6d0e
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4c64bf
push dword [esp + 0x58]
mov edi, dword [ebp + 0x44]
lea edx, [esp + 0x1b]
push edx
push dword [esp + 0x68]
mov esi, dword [ebp + 0x40]
lea edx, [esp + 0x80]
push dword [esp + 0x68]
mov dword [esp + 0x84], 0
push edx
push dword [esp + 0xa0]
mov byte [esp + 0x2f], 0
push dword [esp + 0x48]
push dword [ecx + 0x24]
push dword [esp + 0x3c]
push edi
push esi
push ebx
push dword [esp + 0x98]
push dword [esp + 0x88]
push dword [esp + 0x50]
push dword [esp + 0x64]
push dword [ecx + 0x20]
mov ecx, dword [esp + 0x64]
push eax
push 0
call fcn.004c652e
push dword [esp + 0x58]
mov ecx, dword [esp + 0x94]
push dword [esp + 0x88]
push dword [esp + 0x68]
mov dword [ecx], eax
push dword [esp + 0x68]
mov eax, dword [esp + 0x80]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
push dword [esp + 0x64]
push dword [esp + 0x48]
push dword [eax + 0x24]
push dword [esp + 0x3c]
push edi
push esi
push ebx
push dword [esp + 0x98]
mov ebx, dword [esp + 0x78]
push dword [esp + 0x88]
push dword [esp + 0x50]
push dword [esp + 0x64]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [ebx]
call fcn.004c652e
mov dword [ebx], eax
mov dword [esp + 0x2f0], 0xffffffff
lea ecx, [esp + 0xcc]
call 0x3e6b1e
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xd4], 0x41eec8
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xd8], 0x40bbe4
mov dword [esp + 0xcc], 0x40bbd8
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call 0x59f18f
mov esp, ebp
pop ebp
ret 0x58