Function at 0x404090
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbe4
mov eax, dword [0x4131c0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xbec], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [0x413888], eax
jne 0x4040c1
mov edi, 0x410306
mov esi, 0xf
mov eax, edi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4040e0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xa8]
call fcn.00401d00
mov eax, dword [esp + 0xb4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jbe 0x40434e
mov edi, edi
lea ecx, [esp + 0xf]
push ecx
lea edx, [esp + 0x50]
push edx
lea ebx, [esp + 0x18]
lea edi, [esp + 0xa8]
call fcn.004035b0
mov al, byte [esp + 0x17]
xor ebx, ebx
add esp, 8
cmp al, bl
je 0x40431e
mov edx, dword [esp + 0x60]
cmp edx, ebx
je 0x4041b7
cmp edx, 6
mov ecx, edx
jb 0x40414f
mov ecx, 6
cmp dword [esp + 0x64], 0x10
mov esi, dword [esp + 0x50]
jae 0x40415e
lea esi, [esp + 0x50]
mov edi, str.silent
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40416e
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
jne 0x4041b2
cmp edx, 6
jb 0x4041b2
xor eax, eax
cmp edx, 6
setne al
cmp eax, ebx
jne 0x4041b2
cmp dword [esp + 0x64], 0x10
mov byte [0x413898], 1
jb 0x4041a0
mov eax, dword [esp + 0x50]
push eax
call fcn.00407edd
add esp, 4
mov dword [esp + 0x64], 0xf
mov esi, 0xf
jmp 0x404336
mov esi, 0xf
push 6
push str.launch
push edx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00401350
test eax, eax
jne 0x4041e9
cmp dword [esp + 0x64], 0x10
mov byte [0x41389a], 1
jb 0x404332
mov ecx, dword [esp + 0x50]
push ecx
jmp 0x40432a
mov edx, dword [esp + 0x60]
push 6
push str.ffonly
push edx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00401350
test eax, eax
jne 0x40421f
cmp dword [esp + 0x64], 0x10
mov byte [0x413899], 1
jb 0x404332
mov eax, dword [esp + 0x50]
push eax
jmp 0x40432a
mov ecx, dword [esp + 0x60]
push 5
push str.brand
push ecx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00401350
test eax, eax
jne 0x40431e
lea edx, [esp + 0xf]
push edx
lea eax, [esp + 0x6c]
push eax
lea ebx, [esp + 0x18]
lea edi, [esp + 0xa8]
call fcn.004035b0
mov eax, dword [esp + 0x84]
xor ebx, ebx
add esp, 8
cmp eax, ebx
mov edi, 0x10
jbe 0x4042ec
cmp dword [esp + 0x80], edi
mov eax, dword [esp + 0x6c]
jae 0x404281
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x24]
call fcn.00403730
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00406490
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00401580
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406080
push eax
call fcn.004065c0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.00401580
lea edx, [esp + 0x24]
push edx
call fcn.00405b10
push eax
call fcn.00406660
add esp, 8
lea ecx, [esp + 0x24]
call fcn.00401580
lea ecx, [esp + 0x1c]
call fcn.00401580
cmp dword [esp + 0x80], edi
jb 0x404302
mov eax, dword [esp + 0x6c]
push eax
call fcn.00407edd
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x404332
mov ecx, dword [esp + 0x50]
push ecx
jmp 0x40432a
cmp dword [esp + 0x64], 0x10
jb 0x404332
mov edx, dword [esp + 0x50]
push edx
call fcn.00407edd
add esp, 4
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x404110
xor ebx, ebx
mov edx, dword [ebp + 8]
push 0x105
lea ecx, [esp + 0x30c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov byte [esp + 0x410], bl
mov ecx, 0x1f4
lea edi, [esp + 0x411]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0x14], 0x7d0
call fcn.004055a0
lea eax, [esp + 0x308]
push eax
lea ecx, [esp + 0x50]
call fcn.00405720
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x414]
push edx
lea ecx, [esp + 0x54]
call fcn.004057d0
lea eax, [esp + 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4043d3
sub eax, edx
push eax
lea eax, [esp + 0x414]
push eax
lea ecx, [esp + 0x8c]
call fcn.00401d00
lea ecx, [esp + 0x4c]
call fcn.004056d0
lea ecx, [esp + 0x200]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
lea edx, [esp + 0x204]
push edx
call edi
lea eax, [esp + 0xf8]
push eax
push ebx
push 0x410354
lea ecx, [esp + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4044a4
mov eax, dword [esp + 0x9c]
mov edi, 0x10
cmp eax, edi
jb 0x40445e
mov edx, dword [esp + 0x88]
push edx
call fcn.00407edd
add esp, 4
cmp dword [esp + 0xb8], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40448c
mov eax, dword [esp + 0xa4]
push eax
call fcn.00407edd
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0xbec]
call fcn.00407a6e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea edx, [esp + 0xfc]
push edx
call edi
push ebx
push 1
lea eax, [esp + 0x310]
push eax
lea ecx, [esp + 0x24]
call fcn.00404ef0
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x4045af
push 1
push eax
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0xc8]
call fcn.00405010
lea ecx, [esp + 0xbc]
mov dword [esp + 0xf0], 0x403c50
mov dword [esp + 0xf4], ebx
call fcn.00404f50
test al, al
je 0x4045a3
lea ecx, [esp + 0xbc]
call fcn.00405370
test al, al
je 0x4045a3
mov eax, 0x413124
call fcn.00401740
test al, al
je 0x4045a3
lea edx, [esp + 0xf8]
push edx
lea ecx, [esp + 0x6c]
call fcn.00402090
lea eax, [esp + 0x68]
push str.Fake_Profile
push eax
call fcn.004054f0
mov eax, dword [esp + 0x88]
add esp, 8
cmp eax, 0x10
mov eax, dword [esp + 0x6c]
jae 0x404570
lea eax, [esp + 0x6c]
push ebx
push eax
call edi
lea ecx, [esp + 0x68]
push ecx
call fcn.00402630
add esp, 4
test al, al
je 0x40459a
lea edx, [esp + 0x84]
push edx
push 0x4130ec
call fcn.00402580
add esp, 8
lea ecx, [esp + 0x68]
call fcn.004017b0
lea ecx, [esp + 0xbc]
call fcn.00405090
xor eax, eax
mov dword [esp + 0x3e], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x42], eax
lea ecx, [esp + 0xf8]
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], ebx
mov word [esp + 0x40], 0x410
mov dword [esp + 0x4a], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x18]
call fcn.00404f40
mov eax, dword [esp + 0x9c]
mov edi, 0x10
cmp eax, edi
jb 0x404621
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00407edd
add esp, 4
cmp dword [esp + 0xb8], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40464f
mov edx, dword [esp + 0xa4]
push edx
call fcn.00407edd
add esp, 4
mov ecx, dword [esp + 0xbec]
xor eax, eax
call fcn.00407a6e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10