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

Disassembly:
push 0xffffffffffffffff
push 0x561b51
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x5be940]
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.0043fe60
mov dword [esp + 0x60], ebx
cmp byte [0x5beadc], bl
je 0x4ce197
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x60], 0xffffffff
test ecx, ecx
je 0x4ce181
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ebp
push ecx
push edx
call fcn.004de5b0
mov edi, dword [0x5be940]
add esp, 0xc
mov byte [esp + 0x17], al
test edi, edi
je 0x4ce474
mov eax, dword [edi]
push eax
call fcn.004de160
add esp, 4
test al, al
jne 0x4ce466
mov ecx, dword [edi]
push ecx
call fcn.004de180
add esp, 4
test al, al
je 0x4ce1fa
call fcn.004d0220
test al, al
je 0x4ce466
cmp byte [esp + 0x17], 0
je 0x4ce466
xor esi, esi
cmp dword [edi + 0x180], esi
mov dword [esp + 0x18], esi
jle 0x4ce466
lea esp, [esp]
mov ecx, dword [esp + 0x74]
xor eax, eax
lea edx, [esp + 0x16]
push edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push edx
push esi
mov ecx, edi
mov byte [esp + 0x2e], 0
call fcn.004de610
test al, al
je 0x4ce42f
cmp byte [esp + 0x16], 0
je 0x4ce262
cmp dword [esp + 0x88], 0
je 0x4ce262
cmp byte [0x5be8a4], 0
je 0x4ce42f
push 0
lea ecx, [esp + 0x34]
call fcn.0049ab60
mov eax, dword [esp + 0x70]
mov byte [esp + 0x60], 1
test eax, eax
je 0x4ce298
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x4c]
call fcn.0049b510
mov eax, dword [eax]
or ebx, 1
mov byte [esp + 0x60], 2
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0xb4]
push ecx
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xf4]
push ebp
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x104]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0xbc]
push edx
mov edx, dword [esp + 0xbc]
push eax
push ecx
push edx
lea eax, [esp + 0x90]
push eax
call fcn.004e8230
add esp, 0x64
mov dword [esp + 0x60], 1
test bl, 1
je 0x4ce371
and ebx, 0xfffffffe
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], ebx
call fcn.0049ac30
mov ecx, dword [esp + 0x30]
push 0
push ecx
push esi
push 1
mov ecx, edi
call fcn.004dd2d0
test al, al
je 0x4ce399
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 0
call fcn.0049ac30
jmp 0x4ce42f
mov edx, dword [edi + 0x17c]
mov esi, dword [edx + esi*4]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
call fcn.0049eff0
cmp dword [esi + 0x2c], 0
mov eax, dword [edi]
mov byte [esp + 0x60], 3
je 0x4ce3db
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x50]
call fcn.00406a80
mov eax, dword [esi + 0x2c]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x50]
call fcn.0049eeb0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
push 0
push ecx
push eax
call fcn.004ca100
add esp, 0xc
test al, al
je 0x4ce407
mov edx, dword [edi]
push edx
call fcn.004de180
add esp, 4
test al, al
je 0x4ce407
cmp byte [0x5b2ea4], 0
jne 0x4ce442
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 1
mov dword [esp + 0x48], vtable.cWCS.0
call fcn.0049ee80
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 0
call fcn.0049ac30
mov esi, dword [esp + 0x18]
inc esi
cmp esi, dword [edi + 0x180]
mov dword [esp + 0x18], esi
jl 0x4ce210
jmp 0x4ce466
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 1
mov dword [esp + 0x48], vtable.cWCS.0
call fcn.0049ee80
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 0
call fcn.0049ac30
mov edi, dword [edi + 0x2dc]
test edi, edi
jne 0x4ce1c0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x60], 0xffffffff
test ecx, ecx
je 0x4ce48c
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret