Function at 0x409010
Capabilities:
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42f978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5dc
push ebx
push esi
push edi
lea eax, [esp + 0x3f4]
push 0x1f4
push eax
push 0
mov dword [esp + 0x5fc], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x1f4
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, 0x43b7a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5fc]
call fcn.004231bf
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x3f4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4090f7
test cl, cl
je 0x4090f3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4090f7
add eax, 2
add esi, 2
test cl, cl
jne 0x4090cf
xor eax, eax
jmp 0x4090fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40922c
lea eax, [esp + 0xc]
push 0x43b0d4
push eax
call fcn.004122d1
add esp, 8
test eax, eax
je 0x4091ca
push eax
call fcn.00412223
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x200]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x204]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
mov edi, str.Ex.exe
lea edx, [esp + ecx + 0x204]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [esp + 0x200]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.00413064
add esp, 8
test eax, eax
je 0x4091ca
lea ecx, [esp + 0x5f8]
mov dword [esp + 0x5f0], 0xffffffff
call fcn.00422dd3
xor eax, eax
jmp 0x409248
lea ecx, [esp + 0x3f4]
push 0x43b0d4
push ecx
call fcn.004122d1
lea edx, [esp + 0x14]
push 0x43b0d0
push edx
mov esi, eax
call fcn.004122d1
add esp, 0x10
mov edi, eax
test esi, esi
je 0x409260
test edi, edi
je 0x409260
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x40921d
push edi
push esi
call fcn.004128f4
add esp, 4
push eax
call fcn.00412930
mov al, byte [esi + 0xc]
add esp, 8
test bl, al
je 0x409203
push esi
call fcn.00412223
push edi
call fcn.00412223
add esp, 8
lea ecx, [esp + 0x5f8]
mov dword [esp + 0x5f0], 0xffffffff
call fcn.00422dd3
mov eax, 1
mov ecx, dword [esp + 0x5e8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5e8
ret
call fcn.0041940f
lea ecx, [esp + 0x5f8]
mov dword [esp + 0x5f0], 0xffffffff
call fcn.00422dd3
xor eax, eax
jmp 0x409248