Function at 0x401095
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push edi
push 0x22
pop eax
push dword [ebp + 8]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov edi, eax
lea eax, [ebp - 0x408]
push eax
call ebx
mov esi, eax
push 2
pop edx
movzx eax, word [esi]
test ax, ax
je 0x4011bb
mov ecx, eax
lea ebx, [esi + 2]
push 0x2f
pop eax
cmp cx, ax
jne 0x4011a3
add esi, edx
add ebx, edx
movzx eax, word [esi]
cmp eax, 0x64
ja 0x401125
je 0x401119
sub eax, 0x44
je 0x401119
sub eax, 1
je 0x401141
sub eax, 3
je 0x401133
sub eax, 6
je 0x40112a
sub eax, 1
jne 0x4011a3
mov dword [0x43cdf0], 1
jmp 0x40113d
mov dword [0x43cdf8], 1
jmp 0x40113d
sub eax, 0x65
jmp 0x4010f8
and dword [0x43cdf4], 0
jmp 0x40113d
mov dword [0x43cdfc], 1
mov edi, ebx
jmp 0x4011a3
add esi, edx
add ebx, edx
cmp word [esi], 0x3a
jne 0x4011a3
push 0x22
add esi, edx
add ebx, edx
pop ecx
push 0x20
pop eax
cmp word [esi], cx
jne 0x401164
mov word [esi], ax
add esi, edx
add ebx, edx
push ecx
jmp 0x401165
push eax
push esi
call fcn.0041327a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401178
xor eax, eax
mov word [edi], ax
push esi
push 0x43ccf0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test edi, edi
je 0x401190
push 0x20
pop eax
mov word [edi], ax
jmp 0x40119d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax - 1]
lea edi, [esi + edi*2]
push 2
add edi, 2
pop edx
add esi, edx
add ebx, edx
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x4010d6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x43cdf8]
xor ecx, ecx
cmp word [0x43ccf0], cx
push 0x22
cmove eax, ecx
mov dword [0x43cdf8], eax
lea eax, [ebp - 0x408]
push eax
call fcn.0041327a
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x40126e
push 0x20
pop ecx
jmp 0x4011f4
add eax, 2
cmp word [eax], cx
je 0x4011f1
xor edi, edi
lea ecx, [ebp - 8]
push edi
push ecx
push eax
call fcn.00416792
add esp, 0xc
test eax, eax
je 0x4012c1
cmp word [eax], di
je 0x4012c1
push eax
push esi
call ebx
push edi
lea eax, [ebp - 8]
push eax
push edi
call fcn.00416792
add esp, 0xc
test eax, eax
je 0x4012c1
push 0x20
pop ecx
cmp word [eax], cx
jne 0x4012c1
push edi
lea eax, [ebp - 8]
push eax
push edi
call fcn.00416792
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4012c1
xor eax, eax
cmp word [edi], ax
je 0x4012c1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4012c1
push edi
push 0x43cae8
jmp 0x4012bf
test edi, edi
jne 0x40127b
lea eax, [ebp - 0x408]
push eax
jmp 0x4012be
movzx eax, word [edi]
test ax, ax
jne 0x4012ad
push 0x2f
pop eax
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.0041327a
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x408]
push eax
push esi
call ebx
push esi
call fcn.00402276
pop ecx
jmp 0x4012c1
push 0x20
pop ecx
cmp ax, cx
jne 0x4012bd
add edi, 2
cmp word [edi], cx
je 0x4012b5
push edi
push esi
call ebx
xor ebx, ebx
cmp word [esi], bx
je 0x4012ee
push esi
call fcn.00402276
pop ecx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4012ea
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4012ee
xor eax, eax
jmp 0x4012f1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret