Function at 0x409f04
Capabilities:
Create directory
Create process on windows
Create thread
Delete file

Disassembly:
push ebp
sub esp, 0x74
lea ebp, [esp - 4]
mov eax, dword [0x490a44]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x54
mov eax, 0x46604b
call fcn.0044d0fa
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x260], edi
je 0x40a1e4
mov ebx, dword [esi + 0xa68]
cmp ebx, edi
je 0x40a076
mov ecx, ebx
call fcn.004042a1
push ebx
call fcn.0044a1c9
push 0x78
call fcn.0044cbd5
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
jne 0x40a092
xor eax, eax
mov ecx, dword [esi + 0x21c]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0xa68], eax
mov eax, dword [ecx]
push edi
call dword [eax + 0xc4]
mov ecx, dword [esi + 0x220]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc4]
cmp dword [esi + 0x25c], 1
jne 0x409fa4
mov ecx, 0x46c788
call fcn.00404aba
mov ecx, dword [esi + 0xa68]
call fcn.00401457
push eax
lea ecx, [ebp + 0x3c]
call fcn.00402d46
lea ebx, [esi + 0xa9c]
push ebx
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 2
call fcn.0040320a
push 0x4696a0
push eax
lea eax, [ebp + 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.0040320a
add esp, 0x18
lea ecx, [ebp - 0x28]
push edi
push 1
mov byte [ebp - 4], 5
call fcn.00401efc
cmp dword [ebp + 0x38], 0x10
mov eax, dword [ebp + 0x24]
jae 0x40a004
lea eax, [ebp + 0x24]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
je 0x40a09c
inc byte [ebx]
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x60]
call fcn.004027fe
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 6
call fcn.0040320a
push 0x4696a0
push eax
lea eax, [ebp + 0x58]
push eax
mov byte [ebp - 4], 7
call fcn.0040320a
add esp, 0x18
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 8
call fcn.004026a0
push edi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401efc
push edi
push 1
lea ecx, [ebp - 0x44]
call fcn.00401efc
lea ecx, [ebp - 0x60]
jmp 0x409fec
push 0x78
call fcn.0044cbd5
pop ecx
mov dword [ebp], eax
mov dword [ebp - 4], 1
cmp eax, edi
je 0x409f66
mov ecx, eax
call fcn.00404248
jmp 0x409f68
lea ecx, [esi + 0xa6c]
push ebx
call fcn.004029fb
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp + 0x3c]
call fcn.004026a0
cmp dword [esi + 0x264], 1
jne 0x40a124
push str.setup.exe
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.0040320a
add esp, 0xc
cmp dword [ebp + 0x70], 0x10
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 9
jae 0x40a0e5
lea eax, [ebp + 0x5c]
mov ecx, dword [esi + 0xa68]
push eax
push 0x65
call fcn.004046a8
cmp dword [ebp + 0x70], 0x10
mov ecx, dword [ebp + 0x5c]
jae 0x40a0ff
lea ecx, [ebp + 0x5c]
push 1
mov eax, 0x46968c
push eax
push eax
push ecx
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
push 1
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 5
call fcn.00401efc
push str.NvFileIni.ini
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 4]
push eax
call fcn.0040320a
add esp, 0xc
lea eax, [esi + 0xa6c]
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 0xa
jb 0x40a14e
mov eax, dword [eax + 4]
jmp 0x40a151
add eax, 4
mov ecx, dword [esi + 0xa68]
push eax
call fcn.004049e0
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x40a169
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0xa68]
call fcn.00403796
mov ecx, dword [esi + 0xa68]
push edi
call fcn.00401a16
mov ecx, dword [esi + 0x234]
push edx
push eax
call sym.DuiLib.exe_public:_void___thiscall_DuiLib::CProgressUI::SetMaxValue_long_long___int64__
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push esi
push 0x408797
push edi
push edi
call ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push edi
push edi
push esi
push 0x409320
push edi
push edi
call ebx
xor esi, esi
inc esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push edi
push esi
lea ecx, [ebp + 4]
call fcn.00401efc
push edi
push esi
lea ecx, [ebp + 0x20]
call fcn.00401efc
push edi
push esi
lea ecx, [ebp + 0x3c]
call fcn.00401efc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0044c554
add ebp, 0x78
leave
ret