Function at 0x403f30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00401780
push 0
lea ecx, [ebp - 0x38]
call fcn.00404ee0
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x5c
je 0x403f7c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x2f
jne 0x403f92
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2 - 2], dx
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, 1
test ecx, ecx
je 0x40408c
mov edx, dword [ebp - 8]
push edx
call fcn.00406a20
add esp, 4
test eax, eax
je 0x403fba
jmp 0x40408c
jmp 0x403fc5
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x403feb
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2f
je 0x403feb
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x403feb
jmp 0x403fbc
cmp dword [ebp - 4], 0
jne 0x40407b
cmp dword [ebp - 0xc], 2
jne 0x404054
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
or ecx, 0x20
cmp ecx, 0x61
jl 0x404054
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
or edx, 0x20
cmp edx, 0x7a
jg 0x404054
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
cmp edx, 0x3a
jne 0x404054
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x38]
call fcn.004017d0
mov eax, dword [ebp - 0x10]
jmp 0x4041de
mov eax, dword [ebp + 8]
push eax
push 0xc
push 1
call fcn.0040b610
add esp, 0xc
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x38]
call fcn.004017d0
mov eax, dword [ebp - 0x14]
jmp 0x4041de
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov word [eax + edx*2], cx
jmp 0x403f98
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
jne 0x4040d0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405480
add esp, 8
test eax, eax
je 0x4040d0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x38]
call fcn.004017d0
mov eax, dword [ebp - 0x18]
jmp 0x4041de
mov edx, dword [ebp - 8]
push edx
call fcn.00406a20
add esp, 4
test eax, eax
jne 0x404107
mov eax, dword [ebp - 8]
push eax
push 0xc
push 1
call fcn.0040b610
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x38]
call fcn.004017d0
mov eax, dword [ebp - 0x1c]
jmp 0x4041de
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
jge 0x4041cc
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
push edx
call fcn.0041e7f0
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
test edx, edx
je 0x404150
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
test eax, eax
je 0x404187
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x404187
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2f
je 0x404187
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x404150
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 8]
push edx
call fcn.00406a20
add esp, 4
test eax, eax
jne 0x4041c7
mov eax, dword [ebp - 8]
push eax
push 0xc
push 1
call fcn.0040b610
add esp, 0xc
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x38]
call fcn.004017d0
mov eax, dword [ebp - 0x20]
jmp 0x4041de
jmp 0x404107
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x38]
call fcn.004017d0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret