Function at 0x404e60
Capabilities:
Copy file
Create process on windows
Get disk information

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41ba78
push eax
mov eax, 0x148c
mov dword fs:[0], esp
call fcn.00409970
mov ecx, dword [0x424728]
push ebx
push ebp
push esi
push edi
push 0x105
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x109c]
push edx
lea eax, [esp + 0x12a0]
push eax
lea ecx, [esp + 0x290]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00409b1f
add esp, 0x14
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x40535b
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x20]
call fcn.004024c0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14a4], 0
call fcn.004035f0
push str.TEMP
call fcn.00409ae0
add esp, 4
push eax
lea ecx, [esp + 0x18]
call fcn.004024c0
push 0
push str.setup.ini
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x6a4]
push edx
mov byte [esp + 0x14b8], 1
call fcn.004099ad
add esp, 0x14
call fcn.00415332
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push str._s_setup.exe
push ecx
mov byte [esp + 0x14b0], 2
call fcn.004020a0
mov ebx, dword [esp + 0x2c]
add esp, 0xc
push 0
push ebx
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.00415332
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push 0x41cbe0
push ecx
mov byte [esp + 0x14b0], 3
call fcn.004020a0
add esp, 0xc
lea edx, [esp + 0x694]
push edx
lea ecx, [esp + 0x1c]
call fcn.004024c0
mov ebp, dword [esp + 0x24]
push 0x41cbdc
push ebp
mov byte [esp + 0x14ac], 4
call fcn.004098ab
mov edi, eax
add esp, 8
test edi, edi
je 0x405376
mov eax, dword [esp + 0x18]
push 0x41c900
push eax
call fcn.004098ab
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x34], esi
je 0x4052a2
push esi
lea ecx, [esp + 0x8a0]
push 0x400
push ecx
call fcn.004098be
add esp, 0xc
test eax, eax
je 0x4051a3
mov bl, 6
lea edx, [esp + 0x89c]
push edx
lea ecx, [esp + 0x14]
call fcn.004024c0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov byte [esp + 0x14a4], 5
jl 0x405146
push str.Msi
push eax
call fcn.0040949a
add esp, 8
test eax, eax
je 0x405146
sub eax, dword [esp + 0x10]
sar eax, 1
mov esi, eax
test esi, esi
jl 0x405146
call fcn.00415332
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
sub eax, esi
sub eax, 4
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x14ac], bl
call fcn.00403a20
mov eax, dword [eax]
push 0
push eax
lea edx, [esp + 0x290]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x498]
push ecx
call fcn.004099ad
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4050f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x488]
push eax
lea ecx, [esp + 0x2c]
push 0x41cbc0
push ecx
call fcn.004020a0
mov esi, dword [esp + 0x34]
mov eax, dword [esi - 0xc]
push eax
lea edx, [esp + 0x8ac]
push esi
push edx
call fcn.004093b0
lea eax, [esi - 0x10]
add esp, 0x18
mov byte [esp + 0x14a4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405146
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x89c]
push edi
push eax
call fcn.004097e1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x14a4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40517d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x34]
push esi
lea eax, [esp + 0x8a0]
push 0x400
push eax
call fcn.004098be
add esp, 0xc
test eax, eax
jne 0x405031
mov ebx, dword [esp + 0x20]
push edi
call fcn.00409790
push esi
call fcn.00409790
add esp, 8
push ebp
push 0x41cbbc
push str.MsiFullPath
push str.Bootstrap
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x14ac]
push 5
push 0
push ecx
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x14a4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405208
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x14a4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40522a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x14a4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40524c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x14a4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405272
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x14a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40529b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
jmp 0x40535d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x14a4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x14a4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x14a4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40530c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x14a4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405332
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x14a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40535b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [esp + 0x149c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1498
ret
push 0
push 0x1001
push 0x10
push 0
push 0x6c
lea ecx, [esp + 0x50]
call fcn.004015e0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x14a8], 7
call fcn.00403830
push 0x4201c8
lea ecx, [esp + 0x60]
push ecx
call fcn.0040970a
int3