Function at 0x403e30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
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 - 0x50]
call fcn.0041bbd0
push 0
lea ecx, [ebp - 0x50]
call fcn.00404ff0
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 0x403e7c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x2f
jne 0x403e92
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 0x403fa0
mov edx, dword [ebp - 8]
push edx
call fcn.00406f20
add esp, 4
test eax, eax
je 0x403eba
jmp 0x403fa0
jmp 0x403ec5
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x403eeb
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2f
je 0x403eeb
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x403eeb
jmp 0x403ebc
cmp dword [ebp - 4], 0
jne 0x403f8f
cmp dword [ebp - 0xc], 2
jne 0x403f5e
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
or ecx, 0x20
cmp ecx, 0x61
jl 0x403f5e
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
or edx, 0x20
cmp edx, 0x7a
jg 0x403f5e
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
cmp edx, 0x3a
jne 0x403f5e
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x40411a
mov edx, dword [ebp + 8]
push edx
push 0xc
push 1
call fcn.0040d110
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x40411a
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], dx
jmp 0x403e98
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
jne 0x403fee
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004055c0
add esp, 8
test eax, eax
je 0x403fee
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x24]
jmp 0x40411a
mov edx, dword [ebp - 8]
push edx
call fcn.00406f20
add esp, 4
test eax, eax
jne 0x40402f
mov eax, dword [ebp - 8]
push eax
push 0xc
push 1
call fcn.0040d110
add esp, 0xc
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x40411a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x4040fe
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.0042bfb0
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x404078
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
test edx, edx
je 0x4040af
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x5c
je 0x4040af
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x2f
je 0x4040af
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x404078
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 8]
push ecx
call fcn.00406f20
add esp, 4
test eax, eax
jne 0x4040f9
mov edx, dword [ebp - 8]
push edx
push 0xc
push 1
call fcn.0040d110
add esp, 0xc
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x34]
jmp 0x40411a
jmp 0x40402f
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
ret