Function at 0x40c09d
Capabilities:
Create process on windows
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push edi
push 0x41ff04
call fcn.00410dcf
add esp, 4
push 0x41ff04
lea eax, [ebp - 0x458]
push eax
call fcn.00411ab4
lea ecx, [ebp - 0x458]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40c0ce
cmp byte [ebp + eax - 0x459], 0x5c
je 0x40c0f3
push 0x42158c
lea eax, [ebp - 0x458]
push eax
call sub.CRTDLL.DLL_strcat
add esp, 8
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push eax
call fcn.00411ab4
push 1
push 0x200
lea eax, [ebp - 0x458]
push eax
push 0x421566
lea eax, [ebp - 0x358]
push eax
call fcn.00410af4
push 1
push 0x200
lea eax, [ebp - 0x458]
push eax
push 0x421562
lea eax, [ebp - 0x358]
push eax
call fcn.00410af4
add esp, 0x28
lea eax, [ebp - 0x158]
push eax
push 0x100
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x158]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40c15d
cmp byte [ebp + eax - 0x159], 0x5c
jne 0x40c186
lea ecx, [ebp - 0x158]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40c177
mov byte [ebp + eax - 0x159], 0
push 0x5c
lea eax, [ebp - 0x158]
push eax
call sub.CRTDLL.DLL_strrchr
add esp, 8
or eax, eax
je 0x40c1af
push 0x5c
lea eax, [ebp - 0x158]
push eax
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov byte [eax], 0
push 1
push 0x200
lea eax, [ebp - 0x158]
push eax
push 0x42155e
lea eax, [ebp - 0x358]
push eax
call fcn.00410af4
add esp, 0x14
lea eax, [ebp - 0x158]
push eax
push 0x100
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x158]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40c1eb
cmp byte [ebp + eax - 0x159], 0x5c
je 0x40c210
push 0x42158c
lea eax, [ebp - 0x158]
push eax
call sub.CRTDLL.DLL_strcat
add esp, 8
push 1
push 0x200
lea eax, [ebp - 0x158]
push eax
push 0x42155b
lea eax, [ebp - 0x358]
push eax
call fcn.00410af4
add esp, 0x14
lea ecx, [ebp - 0x458]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40c23b
cmp eax, 3
jbe 0x40c262
lea ecx, [ebp - 0x458]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40c250
sub eax, 1
mov byte [ebp + eax - 0x458], 0
push 0x100
lea eax, [ebp - 0x158]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea eax, [ebp - 0x158]
push eax
call sub.CRTDLL.DLL_strrchr
add esp, 8
or eax, eax
je 0x40c2a1
push 0x5c
lea eax, [ebp - 0x158]
push eax
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov byte [eax + 1], 0
jmp 0x40c2a8
mov byte [ebp - 0x158], 0
push 0
push 0x200
lea eax, [ebp - 0x158]
push eax
push str.S_
lea eax, [ebp - 0x358]
push eax
call fcn.00410af4
push 0x100
lea eax, [ebp - 0x158]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0x200
lea eax, [ebp - 0x158]
push eax
push 0x421552
lea eax, [ebp - 0x358]
push eax
call fcn.00410af4
push 0x7c
lea eax, [ebp - 0x358]
push eax
call sub.CRTDLL.DLL_strchr
add esp, 0x30
or eax, eax
je 0x40c345
push 0x7c
lea eax, [ebp - 0x358]
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
lea edi, [eax + 1]
push edi
lea edi, [ebp - 0x558]
push edi
call fcn.00411ab4
push 0x7c
lea eax, [ebp - 0x358]
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov byte [eax], 0
jmp 0x40c34c
mov byte [ebp - 0x558], 0
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x140
mov eax, dword [0x41fefc]
mov dword [ebp - 0x50], eax
push str..inf
lea eax, [ebp - 0x358]
push eax
call fcn.00410a2c
add esp, 8
or eax, eax
je 0x40c385
lea eax, str.Install
mov dword [ebp - 0x4c], eax
jmp 0x40c38c
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x358]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x558]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40c39e
cmp eax, 0
je 0x40c3b2
lea edi, [ebp - 0x558]
jmp 0x40c3b4
xor edi, edi
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x458]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 5
push 0
push dword [0x41fefc]
call sub.USER32.DLL_ShowWindow
push dword [0x41fefc]
call sub.USER32.DLL_GetParent
or eax, eax
je 0x40c3f6
push dword [0x41fefc]
call sub.USER32.DLL_GetParent
push 0
push eax
call sub.USER32.DLL_ShowWindow
lea eax, [ebp - 0x58]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
or eax, eax
jne 0x40c475
push 5
push dword [0x41fefc]
call sub.USER32.DLL_ShowWindow
push dword [0x41fefc]
call sub.USER32.DLL_GetParent
or eax, eax
je 0x40c432
push dword [0x41fefc]
call sub.USER32.DLL_GetParent
push 5
push eax
call sub.USER32.DLL_ShowWindow
call sub.KERNEL32.DLL_GetLastError
push 0
push 0x200
lea edi, [ebp - 0x358]
push edi
push 0
push eax
push 0
push 0x3200
call sub.KERNEL32.DLL_FormatMessageA
push 0x30
push dword [0x41319c]
lea eax, [ebp - 0x358]
push eax
push dword [0x41fefc]
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x40c511
push 0x3e8
push dword [ebp - 0x20]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [0x420318]
cmp byte [eax + 0x22d], 0
je 0x40c506
jmp 0x40c4c3
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_PeekMessageA
or eax, eax
jne 0x40c492
push 0x1f4
call sub.KERNEL32.DLL_Sleep
push 0xa
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
je 0x40c4a4
jmp 0x40c4fd
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_PeekMessageA
or eax, eax
jne 0x40c4d6
call fcn.0040c514
or eax, eax
jne 0x40c4e8
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
inc eax
pop edi
leave
ret