Function at 0x404120
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.00401830
push 0
lea ecx, [ebp - 0x38]
call fcn.00405190
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 0x40416c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x2f
jne 0x404182
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 0x40427c
mov edx, dword [ebp - 8]
push edx
call fcn.00406d30
add esp, 4
test eax, eax
je 0x4041aa
jmp 0x40427c
jmp 0x4041b5
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4041db
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2f
je 0x4041db
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x4041db
jmp 0x4041ac
cmp dword [ebp - 4], 0
jne 0x40426b
cmp dword [ebp - 0xc], 2
jne 0x404244
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
or ecx, 0x20
cmp ecx, 0x61
jl 0x404244
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
or edx, 0x20
cmp edx, 0x7a
jg 0x404244
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
cmp edx, 0x3a
jne 0x404244
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x38]
call fcn.00401880
mov eax, dword [ebp - 0x10]
jmp 0x4043ce
mov eax, dword [ebp + 8]
push eax
push 0xc
push 1
call fcn.0040c770
add esp, 0xc
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x38]
call fcn.00401880
mov eax, dword [ebp - 0x14]
jmp 0x4043ce
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov word [eax + edx*2], cx
jmp 0x404188
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 0x4042c0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405730
add esp, 8
test eax, eax
je 0x4042c0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x38]
call fcn.00401880
mov eax, dword [ebp - 0x18]
jmp 0x4043ce
mov edx, dword [ebp - 8]
push edx
call fcn.00406d30
add esp, 4
test eax, eax
jne 0x4042f7
mov eax, dword [ebp - 8]
push eax
push 0xc
push 1
call fcn.0040c770
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x38]
call fcn.00401880
mov eax, dword [ebp - 0x1c]
jmp 0x4043ce
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
jge 0x4043bc
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.0042b460
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
test edx, edx
je 0x404340
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 0x404377
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x404377
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2f
je 0x404377
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x404340
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.00406d30
add esp, 4
test eax, eax
jne 0x4043b7
mov eax, dword [ebp - 8]
push eax
push 0xc
push 1
call fcn.0040c770
add esp, 0xc
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x38]
call fcn.00401880
mov eax, dword [ebp - 0x20]
jmp 0x4043ce
jmp 0x4042f7
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x38]
call fcn.00401880
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret