Function at 0x4e1620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c110
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x58d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x29c], ecx
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00408770
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x4e16e6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x5c
mov ecx, dword [ebp - 0x14]
je 0x4e16df
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x2f
mov ecx, dword [ebp - 0x14]
je 0x4e16df
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x4e16e6
mov edx, 0x55ecc4
jmp 0x4e16eb
mov edx, 0x541660
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x294], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e16f6
sub ecx, dword [ebp - 0x294]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00436b80
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x298]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x4e1787
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], 0
call esi
cmp eax, 2
je 0x4e1759
call esi
cmp eax, 0x12
je 0x4e1759
call esi
mov ebx, eax
jmp 0x4e175b
xor ebx, ebx
call fcn.00408e70
mov esi, eax
mov dword [edi], ebx
push ebx
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebp - 0x14]
mov byte [edi + 4], al
mov dword [edi + 8], esi
cmp ecx, 8
jb 0x4e1865
inc ecx
push ecx
jmp 0x4e185a
cmp word [ebp - 0x264], 0
jne 0x4e1795
xor ecx, ecx
jmp 0x4e17af
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e17a0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x29c]
lea eax, [ebp - 0x264]
push eax
call fcn.00408b40
mov eax, dword [ebp - 0x290]
test eax, 0x400
je 0x4e17dd
mov dword [esi], 0
mov dword [ebx], 0
jmp 0x4e183e
test al, 0x10
je 0x4e17ef
mov dword [esi], 3
mov dword [ebx], 3
jmp 0x4e17fb
mov dword [esi], 2
mov dword [ebx], 2
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a070
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.004e28c0
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4e1838
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408d40
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.00408e70
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4e1865
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408d40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c79eb
mov esp, ebp
pop ebp
ret