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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], 0
xor esi, esi
call fcn.00415f44
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x404d08
push 0x80004005
call fcn.0040f420
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x48]
cmp eax, 1
je 0x404fc0
test eax, eax
je 0x404fc0
push ecx
lea ecx, [ebp + 8]
call fcn.0040d1c0
push str..
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040cce0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040f350
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404d75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x274]
push eax
push edi
mov dword [0x47e094], 0x46d1cc
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x404dc0
cmp byte [ebx + 0x2c], 0
je 0x404dac
mov dword [ebx + 0x28], 0
xor esi, esi
jmp 0x405039
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x28], eax
mov esi, 0x10
jmp 0x405039
mov ecx, 0x46d1e0
lea eax, [ebp - 0x248]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404df6
test dx, dx
je 0x404df2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404df6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404dd0
xor eax, eax
jmp 0x404dfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x404f9d
mov ecx, 0x46d1e4
lea eax, [ebp - 0x248]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404e36
test dx, dx
je 0x404e32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404e36
add eax, 4
add ecx, 4
test dx, dx
jne 0x404e10
xor eax, eax
jmp 0x404e3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x404f9d
mov eax, dword [ebp - 0x274]
test al, 0x10
je 0x404f1c
test eax, 0x400
jne 0x404f9d
mov eax, dword [ebx + 0x48]
cmp eax, 2
je 0x404e69
cmp eax, 6
jne 0x404edd
add dword [0x4835c8], 1
lea eax, [ebp + 8]
push 1
adc dword [0x4835cc], 0
push 0x46e4d0
push eax
lea eax, [ebp - 0x14]
mov dword [0x47e094], 0x46d1ec
push eax
call fcn.0040cce0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, esp
lea edx, [ebp - 0x248]
push edx
push eax
push ecx
call fcn.0040cce0
add esp, 0xc
mov ecx, ebx
call dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov esi, eax
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404ed5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x405039
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0x46e4d0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040cce0
add esp, 8
mov byte [ebp - 4], 4
mov ecx, esp
lea edx, [ebp - 0x248]
push edx
push eax
push ecx
call fcn.0040cce0
add esp, 0xc
mov ecx, ebx
call fcn.00404cc0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
jmp 0x404f7b
mov eax, dword [ebx + 0x48]
cmp eax, 4
je 0x404f29
cmp eax, 6
jne 0x404f9d
add dword [0x4835c8], 1
lea eax, [ebp + 8]
push 0
adc dword [0x4835cc], 0
push 0x46e4d0
push eax
lea eax, [ebp - 0x24]
mov dword [0x47e094], 0x46d208
push eax
call fcn.0040cce0
add esp, 8
mov byte [ebp - 4], 5
mov ecx, esp
lea edx, [ebp - 0x248]
push edx
push eax
push ecx
call fcn.0040cce0
add esp, 0xc
mov ecx, ebx
call dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24]
mov esi, eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404f95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x405039
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404dc0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x405039
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ee30
mov esi, dword [ebp - 0x14]
push esi
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ff0
test al, 0x10
mov ecx, 1
movzx eax, byte [ebp - 0x10]
cmovne eax, ecx
mov byte [ebp - 0x10], al
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405008
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
add dword [0x4835c8], 1
lea eax, [ebp + 8]
push ecx
adc dword [0x4835cc], 0
mov ecx, esp
push eax
mov dword [0x47e094], 0x46d1a8
mov dword [ebp - 0x18], ecx
call fcn.0040ee30
mov ecx, ebx
call dword [ebp + 0xc]
mov esi, eax
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x405057
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x405076
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8