Function at 0x4ce810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x537fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x56d940]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x56d940]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
xor edi, edi
mov dword [esp + 0x18], esi
cmp eax, edi
je 0x4ce879
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov ebx, dword [ecx]
push eax
mov eax, dword [ebx + 0x30]
push edx
call eax
mov ecx, dword [esi + 0x3c]
shr ecx, 4
test cl, 1
je 0x4ce876
mov edx, dword [esi + 0xc]
add dword [esi + 0x20], edx
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0x3c]
and eax, 0x90
cmp al, 0x90
jne 0x4ce88e
push esi
call fcn.004cebf0
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x3c]
and ecx, 0x90
cmp cl, 0x90
sete bl
mov byte [esp + 0x17], bl
cmp dword [esi + 0x20], edi
je 0x4ce8d7
inc word [esi + 0x24]
movzx eax, word [esi + 0x24]
movzx edx, bl
neg edx
sbb edx, edx
and edx, 0xffff03e8
add edx, 0xffff
movzx ecx, dx
mov dword [esi + 0x20], edi
cmp ax, cx
jb 0x4ce8d7
push 0xd1
push esi
call fcn.004ce1e0
lea ecx, [esp + 0x28]
call fcn.004014d0
mov dword [esp + 0x70], edi
test bl, bl
je 0x4ce8f7
lea eax, [esi + 0x44]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402460
jmp 0x4ce921
xor cl, cl
lea edx, [esp + 0x44]
mov eax, esi
call fcn.004cd990
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 1
call fcn.00402460
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0
call fcn.004b5cb0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test al, al
jne 0x4ce98e
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esi + 0x3c]
and ecx, 0x70
cmp cl, 0x70
jne 0x4ce984
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov edi, dword [esi + 0x88]
lea ebx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.004cf780
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 3
test eax, eax
jne 0x4ce97e
push 0xe0
xor ecx, ecx
call fcn.004c4640
mov bl, byte [esp + 0x17]
xor edi, edi
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x40], edi
je 0x4ceaf6
mov ebx, 1
lea esp, [esp]
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x38], esp
mov ecx, edi
mov dword [esp + 0x38], edi
call fcn.004014d0
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov byte [esp + 0x90], 2
call fcn.00402480
mov edx, dword [ebp + 8]
push ebx
push edx
mov byte [esp + 0x94], 0
call fcn.004ceb50
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x40]
add eax, 4
push eax
lea ecx, [esp + 0x2c]
call fcn.00402460
lea ecx, [esp + 0x28]
call fcn.00401560
push 1
mov ecx, eax
lea esi, [esp + 0x48]
call fcn.004ccce0
add esp, 4
mov ecx, eax
call fcn.00401560
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, esi
mov ebx, eax
call fcn.004b5cb0
cmp ebx, 0xffffffff
je 0x4cea42
test bl, 0x10
mov eax, 0
sete al
lea eax, [eax + eax - 1]
test eax, eax
je 0x4cea42
mov ebx, 2
mov esi, edi
jmp 0x4ce9a0
mov bl, byte [esp + 0x17]
test bl, bl
je 0x4ceab3
lea ecx, [esp + 0x44]
call fcn.004014d0
mov byte [esp + 0x70], 3
movzx eax, word [edi + 0x24]
inc eax
push eax
lea ecx, [esp + 0x48]
push str.pkback__.3d
push ecx
call fcn.004c4400
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.00401560
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00401560
push esi
push eax
call fcn.004d0520
add esp, 8
lea ecx, [esp + 0x44]
test al, al
jne 0x4ceaa9
mov ebx, 3
call fcn.004b5cb0
mov esi, dword [esp + 0x18]
jmp 0x4ce9a0
mov byte [esp + 0x70], 0
call fcn.004b5cb0
lea ecx, [esp + 0x28]
call fcn.00401560
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
push 0
push 0x1022
push eax
mov eax, dword [edx]
call eax
test al, al
jne 0x4ceadf
mov esi, dword [esp + 0x18]
mov ebx, 4
jmp 0x4ce9a0
test bl, bl
je 0x4ceaee
push edi
call fcn.004cebf0
mov dword [edi + 0x10], eax
jmp 0x4ceb27
mov eax, dword [edi + 8]
mov dword [edi + 0x10], eax
jmp 0x4ceb27
test bl, bl
je 0x4ceb05
push 0xd7
push esi
call fcn.004ce1e0
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x28]
call fcn.00401560
mov esi, dword [esi + 4]
mov edx, dword [esi]
push 1
push 0x1022
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esp + 0x28]
call fcn.004b5cb0
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005007b7
mov esp, ebp
pop ebp
ret 4