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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62eff0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov ecx, dword [edi + 0x1bc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
lea eax, [edi + 0x1b8]
push 0xb4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], eax
call 0x3bcd8e
mov ebx, eax
mov dword [esp + 0x34], 0
xor ecx, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
and byte [ebx + 1], 0xfe
mov byte [ebx], 8
test esi, esi
je 0x4ce554
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 4
call 0x3c27ee
push dword [esp + 0x14]
mov ecx, dword [edi + 0x1bc]
call 0x3bcd8e
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
je 0x4ce66c
push esi
push 0x4283fc
lea eax, [esp + 0x48]
push 0x17
push eax
call 0x3b47ae
add esp, 0x10
test eax, eax
jns 0x4ce588
push 0
push 0
push 0
push eax
call dword [0x660144]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
lea edx, [eax + 2]
jmp 0x4ce59e
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ce59e
mov ecx, dword [esp + 0x24]
sub eax, edx
sar eax, 1
lea edx, [esp + 0x40]
push eax
call fcn.00414e7e
mov edi, dword [edi + 0x1bc]
lea ecx, [esp + 0x2c]
push 0x64
mov edx, 3
mov dword [esp + 0x24], eax
call 0x3bd1ce
mov ecx, dword [eax]
mov eax, dword [edi + 4]
and ecx, 0xfffffffc
sub eax, dword [edi]
mov dword [esp + 0x24], ecx
cmp eax, ecx
jae 0x4ce5f0
push 0x64
mov ecx, edi
call 0x3bcefe
mov ecx, dword [edi]
mov eax, dword [esp + 0x24]
push 0x64
add eax, ecx
push 0
push ecx
mov dword [edi], eax
call 0x5a49da
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x20]
and byte [eax + 1], 0xfe
and byte [eax + 0x60], 0xfe
push 0
push eax
mov byte [eax], 0x24
mov dword [eax + 4], ecx
mov dword [eax + 0x58], esi
mov byte [eax + 0x49], 0x26
mov byte [eax + 0x61], 0
mov dword [edi], eax
push dword [eax + 4]
push 1
push 0
push 0
push 0
push 0
push ebx
push dword [esp + 0x5c]
push dword [esp + 0x44]
call 0x3fef6e
mov ecx, dword [esp + 0x40]
add esp, 0x2c
mov dword [ecx + esi*4], eax
inc esi
mov edi, dword [edi]
mov eax, dword [esp + 0x28]
add edi, 0x50
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
cmp esi, eax
jb 0x4ce562
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x10], 0
je 0x4ce68e
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push eax
push ecx
push edx
mov ecx, edi
call fcn.004ceb1e
push 0
push 0
push 0x10
lea ecx, [edi + 0x1b8]
call fcn.00418cee
mov edx, dword [edi + 0x210]
mov dword [esp + 0x20], eax
mov ecx, dword [edx]
push dword [ecx + 0x10]
lea ecx, [edx + 0x90]
push ecx
lea ecx, [esp + 0x34]
call fcn.00402cde
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
dec edi
mov edx, dword [esp + 0x34]
neg edi
mov ecx, dword [esp + 0x18]
sbb edi, edi
push dword [eax + 0xc]
mov esi, dword [eax + 0x7c]
not edi
and edi, dword [esp + 0x34]
call fcn.0042a9de
and dword [ebx + 0x90], 0xfffbf7ff
mov ecx, dword [ebx + 0x90]
mov edx, dword [esp + 0x18]
and ecx, 0xffffefff
and byte [ebx + 0x60], 0x7f
and ecx, 0xfffffde2
mov dword [ebx + 8], eax
or ecx, 0x502
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x94], eax
movzx eax, byte [ebx + 0x4a]
and al, 0xf7
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x20]
or al, 1
mov byte [ebx + 0x4a], al
movzx eax, byte [ebx + 0x61]
and al, 0xfe
mov dword [ebx + 0x88], edi
mov edi, dword [esp + 0x38]
or al, 0x10
mov byte [ebx + 0x49], 0x24
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x90], ecx
mov byte [ebx + 0x61], al
test edx, edx
je 0x4ce7c2
mov esi, dword [edx + 0x5c]
mov cl, byte [edx + 0x49]
and esi, 0xffffff17
mov byte [edx], 0x10
or esi, 0x10
mov eax, dword [edi]
and esi, 0xffffddfc
or esi, 4
and cl, 0xf6
and esi, 0xfffffbff
or cl, 6
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x8bc]
and byte [edx + 1], 0xe7
and byte [edx + 0x4a], 0xf4
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov eax, esi
mov byte [edx + 0x49], cl
and al, 7
and cl, 0xf
mov dword [edx + 0x50], ebx
mov dword [edx + 0x5c], esi
cmp al, 2
je 0x4ce7b0
or cl, 0x10
or esi, 0x100
mov byte [edx + 0x49], cl
mov dword [edx + 0x5c], esi
mov dword [ebx + 0x84], edx
push ebx
push dword [esp + 0x38]
mov ecx, edi
call fcn.00417b6e
lea eax, [esp + 0x2c]
mov dword [ebx + 0x54], 0
push eax
push ecx
push dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x20]
mov dword [ebx + 0x58], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.004ce95e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [ebp + 0x1c]
push dword [esp + 0x34]
push dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [esp + 0x30]
call fcn.004cec5e
or dword [ebx + 0x90], 0x300000
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, edi
add eax, 0x11
push eax
push 1
push ebx
push dword [esp + 0x28]
call fcn.00417ffe
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0x11
call 0x3c27ee
mov ecx, dword [esp + 0x10]
xor dl, dl
add ecx, 0x68
mov dword [esp + 0x20], ecx
cmp ecx, 0x68
jb 0x4ce874
mov dl, 1
xor esi, esi
test dl, dl
je 0x4ce8db
mov esi, dword [edi + 4]
mov eax, ecx
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4ce894
cmp dword [esi], ecx
jne 0x4ce894
mov eax, 1
mov dword [esp + 0x10], eax
push eax
mov edx, 3
lea ecx, [esp + 0x30]
call 0x3bd1ce
mov ecx, dword [eax]
mov eax, dword [esi + 4]
and ecx, 0xfffffffc
sub eax, dword [esi]
mov dword [esp + 0x3c], ecx
cmp eax, ecx
jae 0x4ce8c0
push dword [esp + 0x10]
mov ecx, esi
call 0x3bcefe
push dword [esp + 0x20]
mov ecx, dword [esi]
mov eax, dword [esp + 0x40]
add eax, ecx
push 0
push ecx
mov dword [esi], eax
call 0x5a49da
add esp, 0xc
mov esi, eax
and byte [esi + 1], 0xfe
mov byte [esi], 5
movzx ecx, byte [ebx]
test byte [ecx + ecx*2 + 0x405210], 8
je 0x4ce90c
mov ecx, dword [edi]
push 0
push 0
push 0
mov ecx, dword [ecx + 0xc]
push 0
push 0x40507c
push dword [esp + 0x2c]
call fcn.004146ae
jmp 0x4ce910
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov al, byte [esi + 0x49]
and al, 0xf
mov dword [esi + 0x14], ebx
or al, 0x30
mov dword [esi + 0x54], 0x11
mov byte [esi + 0x49], al
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x54], eax
mov eax, ebx
mov dword [ebx + 0x58], esi
or byte [esi + 0x58], 1
or byte [ebx + 0x60], 0x40
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call 0x59f18f
mov esp, ebp
pop ebp
ret 0x18