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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fb8e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
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 - 0x2d0], eax
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x464070
xor eax, eax
jmp 0x464347
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x464073
sub edi, edx
sar edi, 1
test cl, 0x10
je 0x464318
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 0x4640cb
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 - 0x2d4], eax
cmp eax, 0xffffffff
je 0x464301
nop word [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 0x464131
xor ecx, ecx
jmp 0x46414f
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464140
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 - 0x2cc], ebx
call fcn.00408610
test eax, eax
je 0x4641fe
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x294], ax
jne 0x4641a5
xor ecx, ecx
jmp 0x4641bf
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4641b0
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 - 0x2cc], ebx
call fcn.00408610
mov byte [ebp - 0x2c1], 0
test eax, eax
jne 0x464205
mov byte [ebp - 0x2c1], 1
test bl, 2
je 0x464236
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x464222
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 0x46425a
mov eax, dword [ebp - 0x2c]
and ebx, 0xfffffffe
cmp eax, 8
jb 0x46425a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004052a0
cmp byte [ebp - 0x2c1], 0
jne 0x4642da
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 0x4642a5
push dword [ebp - 0x2d0]
push esi
push dword [ebp - 0x2c8]
call fcn.00464010
add esp, 0xc
test eax, eax
je 0x4642f5
jmp 0x4642cf
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2c8]
call fcn.00427d40
add esp, 8
test eax, eax
je 0x4642f5
mov eax, dword [ebp - 0x2dc]
add dword [esi], eax
mov eax, dword [ebp - 0x2d8]
adc dword [esi + 4], eax
mov eax, dword [ebp - 0x2d0]
cmp dword [eax], 0
jne 0x4642f5
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x464110
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x464342
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004052a0
jmp 0x464342
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2c8]
call fcn.00427d40
add esp, 8
test eax, eax
je 0x464342
mov eax, dword [ebp - 0x2dc]
add dword [esi], eax
mov eax, dword [ebp - 0x2d8]
adc dword [esi + 4], eax
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