Function at 0x406f80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5089cd
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x5507a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov edx, 0x534688
lea ecx, [ebp - 0xcc]
call fcn.00408440
add esp, 4
push 0x534688
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408530
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0xb8], 8
jb 0x406fff
push dword [ebp - 0xcc]
call fcn.00479330
add esp, 4
xor eax, eax
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
cmp dword [edi + 0x10], eax
je 0x407061
push edi
mov edx, 0x53468c
lea ecx, [ebp - 0xb4]
call fcn.00408440
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040d5e0
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa0], 8
jb 0x407061
push dword [ebp - 0xb4]
call fcn.00479330
add esp, 4
push 0x40
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004d8800
add esp, 0xc
mov dword [ebp - 0x98], 0x44
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x94], 0
cmovae eax, dword [ebp - 0x28]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x90], 0
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], 5
mov dword [ebp - 0x64], 0
movdqu xmmword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4072f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x2c], 7
push 0x11
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x534690
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
call fcn.004040e0
mov edx, esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb4]
call fcn.0040e710
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0040d5e0
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa0], 8
jb 0x407154
push dword [ebp - 0xb4]
call fcn.00479330
add esp, 4
push 0xf
xor eax, eax
mov dword [ebp - 0xb8], 7
push str.ad_installError
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
call fcn.004040e0
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x55c100
call fcn.004056f0
push 0x53403c
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xfc]
call fcn.00408530
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.004085d0
add esp, 4
push eax
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 9
push eax
mov ecx, 0x55c100
call fcn.00407950
cmp dword [ebp - 0xd0], 8
jb 0x4071f6
push dword [ebp - 0xe4]
call fcn.00479330
add esp, 4
xor eax, eax
mov dword [ebp - 0xd0], 7
cmp dword [ebp - 0xe8], 8
mov dword [ebp - 0xd4], 0
mov word [ebp - 0xe4], ax
jb 0x40722a
push dword [ebp - 0xfc]
call fcn.00479330
add esp, 4
xor eax, eax
mov dword [ebp - 0xe8], 7
cmp dword [ebp - 0xa0], 8
mov dword [ebp - 0xec], 0
mov word [ebp - 0xfc], ax
jb 0x40725e
push dword [ebp - 0xb4]
call fcn.00479330
add esp, 4
xor eax, eax
mov dword [ebp - 0xa0], 7
cmp dword [ebp - 0xb8], 8
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xb4], ax
jb 0x407292
push dword [ebp - 0xcc]
call fcn.00479330
add esp, 4
sub esp, 0x18
mov eax, esp
mov dword [eax], 0x5349a8
mov ecx, 0x55c440
mov dword [eax + 4], esi
push str.ad_install_fail
mov dword [eax + 0x10], eax
mov byte [ebp - 4], 4
call fcn.00418e00
cmp dword [ebp - 0x2c], 8
jb 0x4072c7
push dword [ebp - 0x40]
call fcn.00479330
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x4072ec
push dword [ebp - 0x28]
call fcn.00479330
add esp, 4
xor al, al
jmp 0x4075e4
push dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x407317
push dword [ebp - 0x28]
call fcn.00479330
add esp, 4
push 0x927c0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4075e2
push str.ad_installError
cmp eax, 0x102
jne 0x40747d
lea ecx, [ebp - 0xcc]
call fcn.00404210
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], 0xb
push eax
mov ecx, 0x55c100
call fcn.004056f0
push 0x53403c
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xfc]
call fcn.00408530
add esp, 4
push str.errWaitTimeout
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xb4]
call fcn.00408530
add esp, 4
push eax
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0xe
push eax
mov ecx, 0x55c100
call fcn.00407950
cmp dword [ebp - 0xa0], 8
jb 0x4073d1
push dword [ebp - 0xb4]
call fcn.00479330
add esp, 4
xor eax, eax
mov dword [ebp - 0xa0], 7
cmp dword [ebp - 0xe8], 8
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xb4], ax
jb 0x407405
push dword [ebp - 0xfc]
call fcn.00479330
add esp, 4
xor eax, eax
mov dword [ebp - 0xe8], 7
cmp dword [ebp - 0xd0], 8
mov dword [ebp - 0xec], 0
mov word [ebp - 0xfc], ax
jb 0x407439
push dword [ebp - 0xe4]
call fcn.00479330
add esp, 4
xor eax, eax
mov dword [ebp - 0xd0], 7
cmp dword [ebp - 0xb8], 8
mov dword [ebp - 0xd4], 0
mov word [ebp - 0xe4], ax
jb 0x40746d
push dword [ebp - 0xcc]
call fcn.00479330
add esp, 4
sub esp, 0x18
mov eax, esp
mov dword [eax], 0x534988
jmp 0x4075c9
lea ecx, [ebp - 0xb4]
cmp eax, 0xffffffff
jne 0x40752d
call fcn.00404210
lea eax, [ebp - 0xcc]
mov dword [ebp - 4], 0x10
push eax
mov ecx, 0x55c100
call fcn.004056f0
push 0x53403c
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xe4]
call fcn.00408530
add esp, 4
push str.errWaitFailed
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xfc]
call fcn.00408530
add esp, 4
push eax
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0x13
push eax
mov ecx, 0x55c100
call fcn.00407950
lea ecx, [ebp - 0xfc]
call fcn.004042c0
lea ecx, [ebp - 0xe4]
call fcn.004042c0
lea ecx, [ebp - 0xcc]
call fcn.004042c0
lea ecx, [ebp - 0xb4]
call fcn.004042c0
sub esp, 0x18
mov eax, esp
mov dword [eax], 0x534968
jmp 0x4075c9
call fcn.00404210
lea eax, [ebp - 0xcc]
mov dword [ebp - 4], 0x15
push eax
mov ecx, 0x55c100
call fcn.004056f0
push 0x53403c
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xe4]
call fcn.00408530
add esp, 4
push str.errUnknown
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xfc]
call fcn.00408530
add esp, 4
push eax
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0x18
push eax
mov ecx, 0x55c100
call fcn.00407950
lea ecx, [ebp - 0xfc]
call fcn.004042c0
lea ecx, [ebp - 0xe4]
call fcn.004042c0
lea ecx, [ebp - 0xcc]
call fcn.004042c0
lea ecx, [ebp - 0xb4]
call fcn.004042c0
sub esp, 0x18
mov eax, esp
mov dword [eax], 0x534948
push str.ad_install_fail
mov ecx, 0x55c440
mov dword [eax + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00418e00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ce3d2
mov esp, ebp
pop ebp
ret