Function at 0x413b18
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x413b20
push ebx
mov eax, dword [0x414514]
mov byte [eax], 1
mov eax, 0x413a98
call fcn.00405c24
xor eax, eax
push ebp
push 0x413ef5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f950]
call fcn.00403424
mov dword [0x4158ac], eax
push 0x4e3
call sub.kernel32.dll_SetConsoleOutputCP
mov byte [0x4158b0], 0
call fcn.0040291c
test eax, eax
jle 0x413ecb
lea edx, [ebp - 0x1c]
mov eax, 1
call fcn.0040297c
mov eax, dword [ebp - 0x1c]
mov edx, 0x413f0c
call fcn.004042f0
je 0x413c68
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.0040297c
mov eax, dword [ebp - 0x20]
mov edx, 0x413f18
call fcn.004042f0
je 0x413c68
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.0040297c
mov eax, dword [ebp - 0x24]
mov edx, 0x413f24
call fcn.004042f0
je 0x413c68
lea edx, [ebp - 0x28]
mov eax, 1
call fcn.0040297c
mov eax, dword [ebp - 0x28]
mov edx, 0x413f30
call fcn.004042f0
je 0x413c68
lea edx, [ebp - 0x30]
mov eax, 1
call fcn.0040297c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00406e30
mov eax, dword [ebp - 0x2c]
mov edx, 0x413f3c
call fcn.004042f0
je 0x413c68
lea edx, [ebp - 0x38]
mov eax, 1
call fcn.0040297c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00406e30
mov eax, dword [ebp - 0x34]
mov edx, 0x413f4c
call fcn.004042f0
je 0x413c68
lea edx, [ebp - 0x40]
mov eax, 1
call fcn.0040297c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00406e30
mov eax, dword [ebp - 0x3c]
mov edx, 0x413f5c
call fcn.004042f0
jne 0x413c72
call fcn.004135b0
jmp 0x413eda
xor eax, eax
mov dword [0x415898], eax
lea edx, [ebp - 0x48]
mov eax, 1
call fcn.0040297c
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00406e30
mov eax, dword [ebp - 0x44]
mov edx, 0x413f6c
call fcn.004042f0
jne 0x413cb1
mov dword [0x415898], 1
mov byte [0x4158b0], 1
mov eax, dword [0x415898]
inc eax
push eax
call fcn.0040291c
pop edx
sub eax, edx
jl 0x413ed0
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x415894], edx
lea edx, [ebp - 0x50]
mov eax, dword [0x415894]
call fcn.0040297c
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00407644
mov edx, dword [ebp - 0x4c]
mov eax, 0x4158a0
call fcn.00403f5c
lea edx, [ebp - 0x58]
mov eax, dword [0x415894]
call fcn.0040297c
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00407678
mov edx, dword [ebp - 0x54]
mov eax, 0x4158a4
call fcn.00403f5c
lea edx, [ebp - 0x60]
mov eax, dword [0x415894]
call fcn.0040297c
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00407644
cmp dword [ebp - 0x5c], 0
jne 0x413d5a
lea edx, [ebp - 0x68]
xor eax, eax
call fcn.0040297c
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00407644
mov edx, dword [ebp - 0x64]
mov eax, 0x4158a0
call fcn.00403f5c
lea edx, [ebp - 0x70]
mov eax, dword [0x415894]
call fcn.0040297c
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.00407678
cmp dword [ebp - 0x6c], 0
jne 0x413d87
mov eax, 0x4158a4
mov edx, 0x413f7c
call fcn.00403f5c
lea edx, [ebp - 0x74]
mov eax, dword [0x415894]
call fcn.0040297c
mov eax, dword [ebp - 0x74]
call fcn.004043a4
push eax
call sub.kernel32.dll_GetFileAttributesA
test al, 0x10
je 0x413db7
mov edx, 0x4158ac
mov eax, dword [0x4158a0]
call fcn.004132e8
jmp 0x413ddb
mov eax, dword [0x4158ac]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x78]
mov eax, dword [0x415894]
call fcn.0040297c
mov edx, dword [ebp - 0x78]
mov eax, dword [0x4158ac]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x4158ac]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x413eba
inc eax
mov dword [ebp - 0x18], eax
mov dword [0x41589c], 0
lea ecx, [ebp - 0x7c]
mov edx, dword [0x41589c]
mov eax, dword [0x4158ac]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x7c]
mov eax, 0x4158a8
call fcn.00403f5c
mov eax, 0x4158a4
mov edx, dword [0x4158a8]
call fcn.00403f5c
mov eax, dword [0x4158a8]
call fcn.004074f0
test al, al
je 0x413e52
mov cl, byte [0x4158b0]
mov edx, dword [0x4158a8]
mov eax, dword [0x4158a8]
call fcn.00413874
jmp 0x413e69
lea edx, [ebp - 0x80]
mov eax, dword [0x4158a8]
call fcn.00407678
mov eax, dword [ebp - 0x80]
call fcn.004137ac
test al, al
push 0x4158a0
mov edx, dword [0x4158a0]
mov eax, 0x413f88
call fcn.0040448c
push eax
mov eax, dword [0x4158a0]
call fcn.004041a4
pop edx
sub eax, edx
push eax
mov edx, dword [0x4158a0]
mov eax, 0x413f88
call fcn.0040448c
mov edx, eax
inc edx
mov eax, dword [0x4158a0]
pop ecx
call fcn.00404404
inc dword [0x41589c]
dec dword [ebp - 0x18]
jne 0x413dfc
inc dword [0x415894]
dec dword [ebp - 0x14]
jne 0x413cd0
jmp 0x413ed0
call fcn.004135b0
mov eax, dword [0x4158ac]
call fcn.00403454
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413efc
lea eax, [ebp - 0x80]
mov edx, 0x1a
call fcn.00403f2c
ret