Function at 0x40e880
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x4c4]
sub esp, 0x4c4
push 0xffffffffffffffff
push 0x447f52
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp + 0x4c0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x4cc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x4d0]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x78]
push eax
call fcn.0040e560
add esp, 4
lea eax, [ebp + 0x78]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp + 0xa8]
call fcn.00405fb0
mov byte [ebp - 0x18], 0
lea eax, [ebp + 0x48]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
push 4
push 0x44b9c0
push eax
call fcn.00401a60
cmp dword [ebp + 0xbc], 8
lea edi, [ebp + 0xa8]
mov ebx, dword [ebp + 0xb8]
cmovae edi, dword [ebp + 0xa8]
setae byte [ebp - 0x11]
mov byte [ebp - 4], 3
lea esi, [edi + ebx*2]
push esi
push edi
call fcn.0040b5f0
mov edx, eax
add esp, 0x18
mov ecx, edx
cmp edx, esi
je 0x40e986
cmp word [ecx], 0x3a
je 0x40e94f
add ecx, 2
cmp ecx, esi
jne 0x40e942
cmp edx, ecx
je 0x40e986
lea esi, [ecx - 2]
cmp edx, esi
je 0x40e986
cmp word [esi], 0x2e
lea eax, [esi - 2]
jne 0x40e971
cmp edx, eax
jne 0x40e96d
cmp word [eax], 0x2e
je 0x40e986
mov ecx, esi
jmp 0x40e986
cmp edx, eax
je 0x40e986
cmp word [eax], 0x2e
je 0x40e984
sub eax, 2
cmp edx, eax
jne 0x40e975
jmp 0x40e986
mov ecx, eax
sub ecx, edi
sar ecx, 1
cmp ebx, ecx
jb 0x40f11d
cmp byte [ebp - 0x11], 0
lea eax, [ebp + 0xa8]
mov dword [ebp + 0xb8], ecx
cmovne eax, dword [ebp + 0xa8]
xor edx, edx
mov byte [ebp - 4], 2
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x40e9db
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
cmp word [eax], 0x2e
je 0x40e9db
push 0x2e
lea ecx, [ebp + 0xa8]
call fcn.00410b00
mov ecx, dword [ebp + 0x58]
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
push ecx
cmovae eax, dword [ebp + 0x48]
lea ecx, [ebp + 0xa8]
push eax
call fcn.0040ca30
mov edx, dword [ebp + 0x5c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x40ea31
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f122
push edx
push ecx
call fcn.0042c7bf
add esp, 8
lea eax, [ebp + 0x78]
mov byte [ebp + 0x5c], 1
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0xa8]
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0xbc], 8
mov ecx, eax
lea eax, [ebp + 0x78]
mov byte [ebp - 4], 5
cmovae ecx, dword [ebp + 0xa8]
cmp dword [ebp + 0x8c], 8
push ecx
cmovae eax, dword [ebp + 0x78]
push eax
call fcn.00416af6
test eax, eax
jne 0x40f127
jmp 0x40eace
lea eax, [ebp + 0xa8]
mov dword [ebp - 4], 4
push eax
push 0x44b9c8
push 0x66
push 0
call fcn.0040e100
add esp, 0x10
test al, al
jne 0x40eba2
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 0x2e
push str.install.cpp
lea eax, [ebp + 0xc0]
push 0x44b900
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
call fcn.004135e0
test eax, eax
je 0x40eb4c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40eb4c
lea eax, [ebp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004142c0
cmp dword [ebp + 0x8c], 8
lea ecx, [ebp + 0x78]
mov esi, eax
cmovae ecx, dword [ebp + 0x78]
push ecx
call fcn.00416a3b
cmp dword [ebp + 0xbc], 8
lea ecx, [ebp + 0xa8]
cmovae ecx, dword [ebp + 0xa8]
push ecx
call fcn.00416a3b
lea ecx, [ebp + 0xa8]
call fcn.00407b10
lea ecx, [ebp + 0x78]
call fcn.00407b10
mov eax, esi
jmp 0x40f0fa
mov byte [ebp - 0x18], 0
lea eax, [ebp + 0x90]
push dword [ebp - 0x18]
push 0xd
push 0x44b9e4
push eax
call fcn.00401a60
mov esi, dword [ebp - 0x28]
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 7
push esi
push eax
call fcn.00408ea0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x40ebdf
mov eax, dword [eax]
push eax
call fcn.00416a3b
lea ecx, [ebp + 0x60]
call fcn.00407b10
lea ecx, [ebp + 0x90]
call fcn.00407b10
mov dword [ebp - 0x24], 0x44b9f4
mov dword [ebp + 0x90], 0
push 0xe
xor eax, eax
mov dword [ebp + 0xa0], 0
push 0x44b9f4
lea ecx, [ebp + 0x90]
mov dword [ebp + 0xa4], 7
mov word [ebp + 0x90], ax
mov byte [ebp - 4], 4
call fcn.0040ccc0
lea eax, [ebp + 0x90]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp + 0x60]
push esi
push eax
call fcn.00408ea0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40ec5c
mov eax, dword [eax]
push eax
call fcn.00416a3b
lea ecx, [ebp + 0x60]
call fcn.00407b10
mov edx, dword [ebp + 0xa4]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x40ecae
mov ecx, dword [ebp + 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eca4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f13d
push edx
push ecx
call fcn.0042c7bf
add esp, 8
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push eax
call fcn.004299b0
add esp, 8
xor bl, bl
mov byte [ebp - 4], 0xa
push esi
lea ecx, [ebp + 0x90]
mov byte [ebp - 0x11], bl
call fcn.00405fb0
lea eax, [ebp + 0x90]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp + 0x30]
push 0x44ba18
push eax
call fcn.00401470
push 0x44ba14
push eax
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0xc
push eax
call fcn.004013d0
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x20], eax
cmp esi, eax
je 0x40ede4
nop dword [eax]
cmp dword [esi + 0x14], 8
jb 0x40ed37
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
add ecx, ecx
mov dword [ebp - 0x18], ecx
mov ebx, ecx
lea edi, [ecx + eax]
jmp 0x40ed44
mov ebx, dword [esi + 0x10]
mov eax, esi
add ebx, ebx
mov dword [ebp - 0x18], ebx
lea edi, [esi + ebx]
cmp eax, edi
je 0x40ed72
mov edx, str._installdir
nop dword [eax]
cmp edx, 0x44b9a2
je 0x40edb2
mov cx, word [eax]
cmp cx, word [edx]
jne 0x40ed72
add eax, 2
add edx, 2
cmp eax, edi
jne 0x40ed50
cmp edx, 0x44b9a2
je 0x40edb2
cmp dword [esi + 0x14], 8
jb 0x40ed81
mov eax, dword [esi]
mov edi, eax
add edi, dword [ebp - 0x18]
jmp 0x40ed86
lea edi, [esi + ebx]
mov eax, esi
cmp eax, edi
je 0x40edd5
mov edx, str.__installdir
nop
cmp edx, 0x44b9bc
je 0x40edb2
mov cx, word [eax]
cmp cx, word [edx]
jne 0x40edd5
add eax, 2
add edx, 2
cmp eax, edi
jne 0x40ed90
cmp edx, 0x44b9bc
jne 0x40edd5
mov eax, dword [ebp - 0x1c]
mov bl, 1
mov byte [ebp - 0x11], bl
cmp esi, eax
je 0x40edd8
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40edc8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0040ccc0
jmp 0x40edd8
mov bl, byte [ebp - 0x11]
add esi, 0x18
cmp esi, dword [ebp - 0x20]
jne 0x40ed20
lea ecx, [ebp + 0x60]
call fcn.00407b10
lea ecx, [ebp + 0x30]
call fcn.00407b10
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 0xa
call fcn.00407b10
mov esi, dword [ebp - 0x28]
test bl, bl
jne 0x40ee85
push esi
lea ecx, [ebp + 0x90]
call fcn.00405fb0
lea eax, [ebp + 0x90]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp + 0x30]
push 0x44ba18
push eax
call fcn.00401470
push 0x44ba14
push eax
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0xf
push eax
call fcn.004013d0
add esp, 0x18
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x10
push eax
cmp ecx, dword [ebp - 0x2c]
je 0x40ee5d
call fcn.00405f30
add dword [ebp - 0x30], 0x18
jmp 0x40ee66
push ecx
lea ecx, [ebp - 0x34]
call fcn.00402370
lea ecx, [ebp + 0x60]
call fcn.00407b10
lea ecx, [ebp + 0x30]
call fcn.00407b10
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 0xa
call fcn.00407b10
lea eax, [ebp + 0xa8]
push eax
lea ecx, [ebp + 0x30]
call fcn.00405fb0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.00404510
mov edx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x20
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ecx + 0x24], 0
test edx, edx
je 0x40eecb
mov dword [ecx], 0x44bd5c
mov dword [ecx + 4], edx
mov dword [ecx + 0x24], ecx
push 0
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004034a0
add esp, 0x38
lea ecx, [ebp + 0x60]
call fcn.00407b10
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0x16
call fcn.00407b10
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00411810
cmp byte [eax + 4], 0
je 0x40ef1e
mov edi, dword [eax]
mov dword [ebp - 0x18], edi
test edi, edi
je 0x40ef27
mov dword [ebp - 0x18], edi
cmp edi, 4
je 0x40ef27
jmp 0x40f0a7
mov dword [ebp - 0x18], 0
xor edi, edi
mov byte [ebp - 0x20], 0
lea eax, [ebp + 0x90]
push dword [ebp - 0x20]
push 0xd
push 0x44b9e4
push eax
call fcn.00401a60
lea eax, [ebp + 0x90]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp + 0x60]
push esi
push eax
call fcn.00408ea0
push eax
mov byte [ebp - 4], 0x18
call fcn.0040dea0
add esp, 0x20
lea ecx, [ebp + 0x60]
mov bl, al
call fcn.00407b10
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 0x16
call fcn.00407b10
push 0
lea ecx, [ebp + 0x60]
push 0x44b9f4
call fcn.00401130
test bl, bl
je 0x40f014
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.00408ea0
mov esi, eax
mov byte [ebp - 0x20], 0
lea eax, [ebp + 0x90]
push dword [ebp - 0x20]
mov byte [ebp - 4], 0x1a
push 0xd
push 0x44b9e4
push eax
call fcn.00401a60
lea eax, [ebp + 0x90]
mov byte [ebp - 4], 0x1b
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
call fcn.00408ea0
push esi
push eax
call fcn.00410cc0
add esp, 0x30
lea ecx, [ebp]
mov edi, eax
or edi, dword [ebp - 0x18]
call fcn.00407b10
lea ecx, [ebp + 0x90]
call fcn.00407b10
lea ecx, [ebp + 0x18]
call fcn.00407b10
lea ecx, [ebp + 0x60]
call fcn.00407b10
jmp 0x40f0a7
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x1c
push eax
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.00408ea0
push eax
mov byte [ebp - 4], 0x1d
call fcn.0040dea0
add esp, 0x10
lea ecx, [ebp + 0x18]
mov bl, al
call fcn.00407b10
lea ecx, [ebp + 0x60]
call fcn.00407b10
test bl, bl
jne 0x40f0a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x4f
push str.install.cpp
lea eax, [ebp + 0xc0]
push 0x44b900
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
call fcn.004135e0
test eax, eax
je 0x40f0a0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40f0a0
lea eax, [ebp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x3c]
call fcn.004083f0
lea ecx, [ebp - 0x34]
call fcn.00408210
cmp dword [ebp + 0x8c], 8
lea eax, [ebp + 0x78]
cmovae eax, dword [ebp + 0x78]
push eax
call fcn.00416a3b
cmp dword [ebp + 0xbc], 8
lea ecx, [ebp + 0xa8]
cmovae ecx, dword [ebp + 0xa8]
push ecx
call fcn.00416a3b
lea ecx, [ebp + 0xa8]
call fcn.00407b10
lea ecx, [ebp + 0x78]
call fcn.00407b10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c0]
xor ecx, ebp
call fcn.0042cc35
lea esp, [ebp + 0x4c4]
pop ebp
ret
call fcn.0040c410
call fcn.00430d2f
lea ecx, [ebp + 0xa8]
push ecx
lea ecx, [ebp + 0x78]
push ecx
push eax
push str.rename
call fcn.0040c150
call fcn.00430d2f
int3