Function at 0x407090
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
sub esp, 0x2a4
lea ebp, [esp - 4]
mov eax, dword [0x4849a0]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
push 0x90
mov eax, 0x45d262
call fcn.00441277
mov eax, dword [ebp + 0x2d0]
mov dword [ebp - 0x1c], eax
xor esi, esi
lea eax, [ebp + 0x2b0]
inc esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0040359e
mov byte [ebp - 4], 2
mov ebx, dword [ebp + 0x2b0]
mov eax, dword [ebx - 0xc]
test eax, eax
jle 0x40710e
lea eax, [ebp + 0x2b0]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040359e
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40715d
add edi, 0xfffffff0
mov ecx, edi
call fcn.00401109
push str.folder_is_not_available
call fcn.00409842
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [ebx - 0x10]
call fcn.00401109
push 0
push esi
lea esi, [ebp + 0x2b4]
call fcn.0040380e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
call fcn.0043a2d7
add ebp, 0x2a8
leave
ret
and eax, 0x10
lea ecx, [edi - 0x10]
mov dword [ebp - 0x10], eax
call fcn.00401109
cmp dword [ebp - 0x10], 0
je 0x40710e
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406182
mov edi, 0x46a764
push edi
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00403514
mov ebx, eax
neg ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401109
test bl, bl
lea ecx, [ebp - 0x14]
je 0x4071b4
push 0x46b1cc
jmp 0x4071b9
push 0x46b1d0
call fcn.00403855
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40745a
lea eax, [ebp + 0x2c]
push 0x46a7a4
push eax
call fcn.0043af95
test eax, eax
pop ecx
pop ecx
je 0x40743c
lea eax, [ebp + 0x2c]
push 0x46b1d8
push eax
call fcn.0043af95
test eax, eax
pop ecx
pop ecx
je 0x40743c
lea eax, [ebp + 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040359e
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00406182
push edi
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00403514
mov ebx, eax
neg ebx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401109
test bl, bl
je 0x407278
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040625e
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004035bc
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
jmp 0x4072ba
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040625e
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 7
call fcn.0040625e
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.004035bc
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401109
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401109
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x18]
call fcn.0043bdf7
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x40742a
test byte [ebp - 0x96], 0x80
je 0x40742a
test word [ebp - 0x96], 0x100
je 0x40742a
lea eax, [ebp + 0x2c]
lea ecx, [ebp + 0x26c]
call fcn.0040348c
push str.UnAttended
lea eax, [ebp + 0x26c]
mov byte [ebp - 4], 9
call fcn.0040790e
test eax, eax
je 0x40741b
lea eax, [ebp + 0x26c]
push eax
lea eax, [ebp + 0x2b4]
push eax
lea eax, [ebp + 0x288]
push eax
call fcn.004081eb
add esp, 0xc
mov byte [ebp - 4], 0xa
test byte [ebp], 0x10
je 0x4073fd
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x2b4]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00408235
push edi
push eax
lea eax, [ebp + 0x250]
push eax
mov byte [ebp - 4], 0xb
call fcn.00408235
add esp, 0x18
push 0
push 1
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
call fcn.0040380e
push dword [ebp - 0x1c]
lea eax, [ebp + 0x250]
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x30], esp
call fcn.0040346d
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.0040359e
mov byte [ebp - 4], 0xd
call fcn.00407090
push edi
lea eax, [ebp + 0x288]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00408235
add esp, 0x30
push 0xffffffffffffffff
lea ecx, [ebp + 0x288]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xf
call fcn.0040371e
push ebx
push 1
lea esi, [ebp - 0x50]
call fcn.0040380e
push ebx
push 1
lea esi, [ebp + 0x250]
mov byte [ebp - 4], 0xa
call fcn.0040380e
lea eax, [ebp + 0x288]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00407a29
push 0
push 1
lea esi, [ebp + 0x288]
call fcn.0040380e
push 0
push 1
lea esi, [ebp + 0x26c]
call fcn.0040380e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401109
xor esi, esi
inc esi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4071d7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp + 0x2b0]
add ecx, 0xfffffff0
jmp 0x407127