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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fc8e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x55e2f4]
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 edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d0], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
jne 0x4650b4
xor eax, eax
jmp 0x46538b
lea eax, [ebp - 0x2d4]
push eax
push edi
call fcn.00464fa0
add esp, 8
test eax, eax
je 0x4650d9
mov eax, dword [ebp - 0x2d4]
add dword [esi], eax
mov eax, dword [ebp - 0x2d0]
adc dword [esi + 4], eax
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4650e0
sub edi, ecx
sar edi, 1
test byte [ebp - 0x2cc], 0x10
je 0x465386
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x58]
call fcn.00403e70
push str..
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
call fcn.00403cd0
add esp, 0xc
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x46513c
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
je 0x465371
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp - 0x294], ax
jne 0x4651a1
xor ecx, ecx
jmp 0x4651bf
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4651b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.004051a0
push 1
push 0x516c70
push dword [ebp - 0x30]
or ebx, 1
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2d0], ebx
call fcn.00408610
test eax, eax
je 0x46526e
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x294], ax
jne 0x465215
xor ecx, ecx
jmp 0x46522f
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x465220
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.004051a0
push 2
push 0x51d3f4
push dword [ebp - 0x18]
or ebx, 2
mov dword [ebp - 4], 4
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2d0], ebx
call fcn.00408610
mov byte [ebp - 0x2c1], 0
test eax, eax
jne 0x465275
mov byte [ebp - 0x2c1], 1
test bl, 2
je 0x4652a6
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x465292
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
test bl, 1
je 0x4652ca
mov eax, dword [ebp - 0x2c]
and ebx, 0xfffffffe
cmp eax, 8
jb 0x4652ca
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004052a0
cmp byte [ebp - 0x2c1], 0
jne 0x46534a
lea eax, [ebp - 0x294]
push eax
mov eax, dword [ebp - 0x2c8]
push 0x521e00
lea eax, [eax + edi*2]
push eax
call fcn.004054c0
add esp, 0xc
test byte [ebp - 0x2c0], 0x10
je 0x465315
push dword [ebp - 0x2d8]
push esi
push dword [ebp - 0x2c8]
call fcn.00465050
add esp, 0xc
test eax, eax
je 0x465365
jmp 0x46533f
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x2c8]
call fcn.00464fa0
add esp, 8
test eax, eax
je 0x465365
mov eax, dword [ebp - 0x2e0]
add dword [esi], eax
mov eax, dword [ebp - 0x2dc]
adc dword [esi + 4], eax
mov eax, dword [ebp - 0x2d8]
cmp dword [eax], 0
jne 0x465365
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x465180
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x465386
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004052a0
mov eax, 1
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.004e1f40
mov esp, ebp
pop ebp
ret