Function at 0x4010f0
Capabilities:
Accept command line arguments
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41fb98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x428f60]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push ebx
call esi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00404410
test eax, eax
jne 0x401174
push str.Fatal:_MFC_initialization_failed_n
call fcn.0040edd7
add eax, 0x40
push eax
call fcn.0040f0ca
add esp, 8
lea eax, [ebx + 1]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
call fcn.00403057
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401196
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebx
call esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401380
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.00402690
add esp, 4
test al, al
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x18]
sete byte [esp + 0x13]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4011f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], bl
je 0x40121a
push str.Fatal:_Unable_to_parse_command_line.
call fcn.0040edd7
add eax, 0x40
push eax
call fcn.0040f0ca
add esp, 8
jmp 0x4012d0
call fcn.00403057
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401234
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x34], 2
call fcn.00401820
add esp, 4
test al, al
jne 0x401280
cmp byte [esp + 0x1c], bl
jne 0x401273
push 0x10
push str.Installer_Error
push str.Unable_to_extract_MSI
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x4012b8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402290
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x401306
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x30], bl
lea eax, [esi - 0x10]
mov ecx, edi
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4012d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4012f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x1c], bl
je 0x4012a6
push 0x10
push str.Installer_Error
push str.Unable_to_execute_MSI
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4012a6