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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62f126
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x2c], edi
mov ecx, dword [edi + 0x210]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x1bc]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
push dword [eax + 0x10]
lea eax, [ecx + 0x90]
push eax
lea ecx, [esp + 0x24]
call fcn.00402cde
mov ecx, dword [esp + 0x1c]
dec ecx
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [esp + 0x20]
call 0x3c4d6e
mov esi, eax
mov ecx, esi
call 0x3dacee
mov ecx, dword [esi + 0x54]
push 0
push ebx
call 0x3da85e
test eax, eax
je 0x4cfb25
cmp byte [ebp + 0x20], 0
je 0x4cfaf8
cmp byte [edi + 0x88], 0
je 0x4cfb1e
push dword [ebp + 0x10]
push 0x8efe
push dword [edi + 0x1c]
call 0x3cd1ce
add esp, 0xc
xor eax, eax
jmp 0x4d001d
cmp byte [edi + 0x88], 0
je 0x4cfb1e
test ebx, ebx
jne 0x4cfb0a
mov ebx, 0x404b4c
push ebx
push dword [ebp + 0x10]
push 0x8ec3
push dword [edi + 0x1c]
call 0x3cd1ce
add esp, 0x10
xor eax, eax
jmp 0x4d001d
mov ecx, dword [esp + 0x28]
call 0x3c4d6e
mov esi, eax
mov ecx, esi
call 0x3dacee
mov ecx, dword [esi + 0x54]
push 0
push ebx
call 0x3da85e
test eax, eax
je 0x4cfb81
cmp byte [edi + 0x88], 0
je 0x4cfb1e
test ebx, ebx
jne 0x4cfb58
mov ebx, 0x404b4c
mov eax, dword [ebp + 0x20]
movzx eax, al
neg eax
push ebx
push dword [ebp + 0x10]
sbb eax, eax
and eax, 0x35
add eax, 0x8ec3
push eax
push dword [edi + 0x1c]
call 0x3cd1ce
add esp, 0x10
xor eax, eax
jmp 0x4d001d
mov ecx, dword [edi + 0xc]
push 0
push 0
push 0
mov ecx, dword [ecx + 0xc]
push 0
push ebx
push 0x4258dc
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004146ae
push 0
mov esi, eax
lea eax, [edi + 0x1b8]
push 1
push 0x10
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.00418cee
xor ecx, ecx
cmp byte [ebp + 0x24], cl
je 0x4cfbcf
lea edx, [ecx + 2]
jmp 0x4cfbd1
xor edx, edx
push eax
lea eax, [esp + 0x20]
or ecx, 0x20001
push eax
push 0
push dword [ebp + 0x28]
push 1
push edx
push ecx
push esi
push esi
push dword [ebp + 0x10]
call fcn.00416ede
mov ecx, dword [edi + 0xc]
push 0
push 0
push 0
mov ecx, dword [ecx + 0xc]
push 0
push ebx
push 0x428694
call fcn.004146ae
mov ecx, dword [edi + 0x1bc]
mov esi, eax
push 0xf4
call 0x3bcd8e
mov ecx, eax
mov edx, dword [ebp + 0x10]
and byte [ecx + 0x18], 0xcf
add ecx, 0x20
mov dword [esp + 0x24], ecx
mov al, byte [ecx + 0x78]
and byte [ecx + 0x79], 0xf2
and al, 0x40
and byte [ecx + 0x4b], 0xfd
or al, 2
and byte [ecx + 0x7b], 0xf9
mov byte [ecx + 0x78], al
mov eax, dword [ebp + 0x28]
mov dword [ecx + 0x50], eax
mov al, byte [ecx + 0x4a]
mov ah, byte [ecx + 1]
and al, 0xf7
or al, 3
mov byte [ecx], 0xa
mov byte [ecx + 0x4a], al
and ah, 0xe7
mov al, byte [ecx + 0x7a]
or ah, 1
and al, 0xae
mov dword [ecx + 4], esi
or al, 4
mov dword [ecx + 8], esi
mov byte [ecx + 0x49], 0x16
mov byte [ecx + 1], ah
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov byte [ecx + 0x7a], al
test edx, edx
je 0x4cfcc9
test ah, 1
jne 0x4cfc8f
xor esi, esi
jmp 0x4cfc92
lea esi, [ecx - 0x20]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov al, byte [ecx]
cmp al, 9
je 0x4cfcdb
cmp al, 0xd
jne 0x4cfcc5
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x80], 0
jmp 0x4cfcdb
cmp al, 0xa
jne 0x4cfcdb
mov eax, dword [ecx + 0x8c]
and eax, 0xffffffea
or eax, 0xa
mov dword [ecx + 0x8c], eax
mov dword [ecx + 0x4c], 0
mov dword [esp + 0x34], ecx
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], 1
call fcn.0041538e
mov dword [esp + 0x2a0], 5
lea ecx, [esp + 0x3c]
push 0xe
push 0x4286a0
call fcn.00415b1e
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
push ebx
call fcn.004cf7be
push 4
push 0x428404
lea ecx, [esp + 0x44]
call fcn.00415b1e
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x3c]
push dword [esp + 0x14]
shr esi, 1
call fcn.00415b9e
mov ecx, dword [esp + 0x24]
xor edi, edi
cmp byte [ebp + 0x24], 0
mov dword [ecx + 0x84], eax
mov dword [ecx + 0x88], esi
jne 0x4cff27
mov eax, dword [esp + 0x18]
push 0xf4
mov ecx, dword [eax + 4]
call 0x3bcd8e
mov esi, dword [esp + 0x2c]
mov edi, eax
and byte [edi + 0x18], 0xcf
add edi, 0x20
or byte [edi + 1], 1
mov byte [edi], 0xa
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4cfdab
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4cfdab
cmp dword [eax + 0x160c], 6
jne 0x4cfdab
push 0
push 0
push 0
push 0
push ebx
push 0x4286b0
jmp 0x4cfdb9
push 0
push 0
push 0
push 0
push ebx
push 0x4286bc
mov ecx, dword [ecx + 0xc]
call fcn.004146ae
mov dword [esp + 0x30], eax
mov edx, 0x4236ec
mov eax, dword [esi + 0xc]
push 5
mov ecx, dword [eax + 0xc]
call fcn.00414e7e
mov ecx, dword [esp + 0x18]
mov esi, eax
push 0
push 0
push 0xe
call fcn.00418cee
mov ecx, eax
mov eax, dword [ebp + 0x28]
and byte [ecx + 0x20], 0xc0
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], esi
and byte [edi + 1], 0xe7
and byte [edi + 0x79], 0xf2
and byte [edi + 0x4b], 0xfd
and byte [edi + 0x7b], 0xf9
mov dl, byte [edi + 1]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov al, byte [edi + 0x78]
and al, 0x40
mov dword [edi + 0x54], ecx
mov ecx, dword [ebp + 0x10]
or al, 4
mov byte [edi + 0x78], al
mov al, byte [edi + 0x4a]
and al, 0xf7
mov byte [edi + 0x49], 0x16
or al, 3
mov dword [edi + 0x50], 0
mov byte [edi + 0x4a], al
mov al, byte [edi + 0x7a]
and al, 0xae
mov dword [edi + 0x58], 0
or al, 4
mov byte [edi + 0x7a], al
test ecx, ecx
je 0x4cfe70
test dl, 1
jne 0x4cfe57
xor edx, edx
jmp 0x4cfe5a
lea edx, [edi - 0x20]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov al, byte [edi]
cmp al, 9
je 0x4cfea3
cmp al, 0xd
jne 0x4cfe8d
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
jmp 0x4cfea3
cmp al, 0xa
jne 0x4cfea3
mov eax, dword [edi + 0x8c]
and eax, 0xffffffea
or eax, 0xa
mov dword [edi + 0x8c], eax
mov eax, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x168]
mov dword [edi + 0x4c], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 2
call fcn.0041538e
mov byte [esp + 0x2a0], 0xb
lea eax, [esp + 0x164]
mov ecx, dword [esp + 0x2c]
push eax
push ebx
call fcn.004cf7be
push 0x4286c8
lea ecx, [esp + 0x28c]
call fcn.004157de
mov esi, dword [esp + 0x16c]
lea ecx, [esp + 0x164]
push dword [esp + 0x14]
shr esi, 1
call fcn.00415b9e
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], esi
mov byte [esp + 0x2a0], 5
lea ecx, [esp + 0x164]
call 0x3cc30e
mov eax, dword [esp + 0x18]
push 0xb0
mov ecx, dword [eax + 4]
call 0x3bcd8e
mov esi, eax
mov ecx, dword [esp + 0x18]
and byte [esi + 0x18], 0xcf
add esi, 0x20
push esi
push 0
push 0
push 0xa
push 0
or byte [esi + 1], 1
push 0
push 0
push 0
push dword [ebp + 0x28]
mov dword [esp + 0x38], esi
push 0
push 0x840004
push 0
push 0
push ebx
push ebx
push 0
mov byte [esi], 0x1f
call fcn.0041714e
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
and cl, 1
or cl, 2
and al, 1
add cl, cl
or cl, al
mov al, byte [esi + 0x8c]
and al, 0xe7
shl cl, 3
or cl, al
xor eax, eax
mov byte [esi + 0x8c], cl
cmp byte [ebp + 0x24], al
je 0x4cffa7
lea ecx, [eax + 2]
jmp 0x4cffa9
xor ecx, ecx
lea edx, [esp + 0x1c]
or ecx, 0x800
push edx
push esi
push edi
push dword [esp + 0x30]
or eax, 4
push ecx
push eax
push ebx
push dword [ebp + 0x14]
call fcn.00417f1e
mov ecx, dword [esp + 0x28]
push 1
call 0x3c4d6e
mov ecx, eax
call 0x3dad3e
lea edx, [esp + 0x20]
mov ecx, eax
call fcn.004189fe
mov ecx, dword [esp + 0x28]
call 0x3c4d6e
mov esi, eax
mov ecx, esi
call 0x3dacee
mov ecx, dword [esi + 0x58]
lea edx, [esp + 0x34]
push 1
call fcn.004189fe
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [esp + 0x3c]
call 0x3cc30e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call 0x59f18f
mov esp, ebp
pop ebp
ret 0x24