Function at 0x40f150
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x464]
sub esp, 0x464
push 0xffffffffffffffff
push 0x447fa5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp + 0x460], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x46c]
lea eax, [ebp - 0x18]
push eax
xor esi, esi
mov dword [ebp - 0x14], 0x461014
push edi
mov dword [ebp - 0x18], esi
call fcn.0040d7c0
mov byte [ebp - 0x10], 0
lea eax, [ebp + 0x48]
push dword [ebp - 0x10]
push 0xd
push 0x44b9e4
push eax
call fcn.00401a60
lea eax, [ebp + 0x48]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp + 0x30]
push edi
push eax
call fcn.00408ea0
add esp, 0x24
mov edx, dword [ebp + 0x5c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x40f20d
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f203
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3ed
push edx
push ecx
call fcn.0042c7bf
add esp, 8
xor eax, eax
mov dword [ebp + 0x58], 0
mov word [ebp + 0x48], ax
lea eax, [ebp + 0x30]
push eax
mov dword [ebp + 0x5c], 7
call fcn.0040dea0
add esp, 4
test al, al
jne 0x40f2b9
lea eax, [ebp + 0x30]
push eax
push 0x44bcb8
push 0x67
push 0
call fcn.0040df50
add esp, 0x10
test al, al
jne 0x40f393
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x109
push str.install.cpp
lea eax, [ebp + 0x60]
push 0x44b900
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
call fcn.004135e0
test eax, eax
je 0x40f2a6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40f2a6
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004142c0
mov esi, eax
jmp 0x40f393
cmp byte [ebp + 0x470], 0
je 0x40f393
mov byte [ebp - 0x10], 0
lea eax, [ebp + 0x18]
push dword [ebp - 0x10]
push 0x11
push str.uninstall.exe.new
push eax
call fcn.00401a60
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp]
push edi
push eax
call fcn.00408ea0
add esp, 0x1c
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 5
call fcn.00407b10
lea eax, [ebp]
push eax
push 0x44bcb8
push 0x67
push 0
call fcn.0040df50
add esp, 0x10
test al, al
jne 0x40f379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x110
push str.install.cpp
lea eax, [ebp + 0x60]
push 0x44b900
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
call fcn.004135e0
test eax, eax
je 0x40f36b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40f36b
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004142c0
jmp 0x40f389
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp]
push eax
call fcn.00410cc0
add esp, 8
lea ecx, [ebp]
mov esi, eax
call fcn.00407b10
mov edx, dword [ebp + 0x44]
cmp edx, 8
jb 0x40f3c9
mov ecx, dword [ebp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3f2
push edx
push ecx
call fcn.0042c7bf
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x460]
xor ecx, ebp
call fcn.0042cc35
lea esp, [ebp + 0x464]
pop ebp
ret
call fcn.00430d2f
call fcn.00430d2f
int3