Function at 0x4076f4
Capabilities:
Create process on windows
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff18
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x88], eax
mov eax, 0x4bca20
call fcn.00479eb8
mov dword [ebp - 0x68], 3
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0x68]
lea edx, [ebp - 8]
mov word [ebp - 0x74], 8
lea eax, [ebp - 8]
call fcn.00488c1c
inc dword [ebp - 0x68]
lea edx, [ebp + 0x14]
lea eax, [ebp + 0x14]
call fcn.00488c1c
inc dword [ebp - 0x68]
xor edx, edx
mov word [ebp - 0x74], 0x14
mov dword [ebp - 0x24], edx
mov eax, dword [0x4e9de4]
inc dword [ebp - 0x68]
lea edx, [ebp - 0x24]
mov eax, dword [eax]
call fcn.004655f0
lea eax, [ebp - 0x24]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x68]
call fcn.004336ac
dec dword [ebp - 0x68]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x74], 8
mov word [ebp - 0x74], 0x20
mov edx, 0x4ea038
lea eax, [ebp - 0x10]
call fcn.00488c1c
inc dword [ebp - 0x68]
mov edx, str.msginfo.exe
mov word [ebp - 0x74], 8
mov word [ebp - 0x74], 0x2c
lea eax, [ebp - 0x28]
call fcn.00488be4
inc dword [ebp - 0x68]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.00488e14
dec dword [ebp - 0x68]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x74], 0x38
mov edx, 0x4be928
lea eax, [ebp - 0x14]
call fcn.00488c1c
inc dword [ebp - 0x68]
mov edx, 0x4ba416
mov word [ebp - 0x74], 8
mov word [ebp - 0x74], 0x44
lea eax, [ebp - 0x18]
call fcn.00488be4
inc dword [ebp - 0x68]
xor ecx, ecx
mov word [ebp - 0x74], 8
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x10]
call fcn.004334fc
test al, al
je 0x407974
mov word [ebp - 0x74], 0x50
lea edx, [ebp - 0x8c]
xor eax, eax
push edx
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
push ecx
mov dword [ebp - 0x2c], eax
push edx
inc dword [ebp - 0x68]
call fcn.00412dd0
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.00488e00
dec dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00488dd0
xor ecx, ecx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x18]
inc dword [ebp - 0x68]
call fcn.0048901c
lea ecx, [ebp - 0x34]
xor eax, eax
push ecx
lea edx, [ebp - 0x30]
mov word [ebp - 0x74], 0x5c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
inc dword [ebp - 0x68]
call fcn.0048901c
lea eax, [ebp - 0x30]
pop edx
call fcn.00488ecc
push eax
dec dword [ebp - 0x68]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00488dd0
pop ecx
test cl, cl
je 0x407a0e
push 0x20
cmp dword [ebp - 0x10], 0
je 0x4078df
mov eax, dword [ebp - 0x10]
jmp 0x4078e4
mov eax, 0x4ba417
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, dword [ebp - 0x10]
call fcn.00488b2c
mov word [ebp - 0x74], 0x68
mov word [ebp - 0x74], 0x80
mov edx, 0x4ba418
lea eax, [ebp - 0x38]
call fcn.00488be4
inc dword [ebp - 0x68]
mov ecx, dword [0x4e9b70]
mov edx, dword [eax]
mov eax, dword [0x423d48]
push edx
push 0x4ba41d
mov ecx, dword [ecx]
mov dl, 1
call fcn.0042877c
mov ebx, eax
dec dword [ebp - 0x68]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x74], 0x74
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00428578
mov eax, ebx
call fcn.00443f40
mov word [ebp - 0x74], 0x68
mov word [ebp - 0x74], 8
jmp 0x407a0e
mov word [ebp - 0x74], 0x8c
mov word [ebp - 0x74], 0xa4
mov edx, 0x4ba421
lea eax, [ebp - 0x3c]
call fcn.00488be4
inc dword [ebp - 0x68]
mov ecx, dword [0x4e9b70]
mov edx, dword [eax]
mov eax, dword [0x423d48]
push edx
push 0x4ba426
mov ecx, dword [ecx]
mov dl, 1
call fcn.0042877c
mov ebx, eax
dec dword [ebp - 0x68]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x74], 0x98
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00428578
mov eax, ebx
call fcn.00443f40
mov word [ebp - 0x74], 0x8c
mov word [ebp - 0x74], 8
jmp 0x407a0e
push 0x4ba42b
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 8
xor ebx, ebx
mov word [ebp - 0x74], 8
cmp dword [ebp + 0x10], 0
je 0x407a36
cmp dword [ebp + 0xc], 0
jne 0x407a38
mov bl, 1
push 0x44
push 0
lea eax, [ebp - 0xd8]
push eax
call fcn.004798f8
add esp, 0xc
lea edx, [ebp - 0xe8]
mov dword [ebp - 0xd8], 0x44
push 0x10
push 0
push edx
call fcn.004798f8
mov word [ebp - 0x74], 0xb0
add esp, 0xc
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x1c]
call fcn.00488c1c
inc dword [ebp - 0x68]
mov edx, 0x4ba42f
mov word [ebp - 0x74], 8
mov word [ebp - 0x74], 0xbc
lea eax, [ebp - 0x40]
call fcn.00488be4
inc dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x1c]
inc dword [ebp - 0x68]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x44]
call fcn.00488e28
lea eax, [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x20]
inc dword [ebp - 0x68]
lea edx, [ebp - 4]
call fcn.00488e28
dec dword [ebp - 0x68]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x74], 8
mov word [ebp - 0x74], 0xc8
xor eax, eax
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x48]
inc dword [ebp - 0x68]
lea edx, [ebp - 8]
mov eax, 0x4ba431
call fcn.00489260
lea ecx, [ebp - 0x48]
push ecx
mov edx, 0x4ba434
lea eax, [ebp - 0x4c]
call fcn.00488be4
inc dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x4c]
inc dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
pop eax
call fcn.00488e28
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x20]
call fcn.00488e14
dec dword [ebp - 0x68]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x74], 0xd4
xor ecx, ecx
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x54]
inc dword [ebp - 0x68]
lea edx, [ebp + 0x14]
mov eax, 0x4ba436
call fcn.00489260
lea eax, [ebp - 0x54]
push eax
mov edx, 0x4ba439
lea eax, [ebp - 0x58]
call fcn.00488be4
inc dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x5c]
inc dword [ebp - 0x68]
lea edx, [ebp - 0x58]
pop eax
call fcn.00488e28
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x20]
call fcn.00488e14
dec dword [ebp - 0x68]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x74], 0xe0
mov edx, 0x4ba43b
lea eax, [ebp - 0x60]
call fcn.00488be4
inc dword [ebp - 0x68]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x1c]
call fcn.00488eb4
push eax
dec dword [ebp - 0x68]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00488dd0
pop ecx
test cl, cl
je 0x407da8
push 3
push 0
push 0
cmp dword [ebp - 4], 0
je 0x407c38
mov eax, dword [ebp - 4]
jmp 0x407c3d
mov eax, 0x4ba441
push eax
push 0x4ba43c
push 0
call sub.SHELL32.DLL_ShellExecuteA
mov word [ebp - 0x74], 8
cmp eax, 0x20
jle 0x407d02
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 0x20]
dec dword [ebp - 0x68]
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x408179
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 0x20]
dec dword [ebp - 0x68]
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x408179
lea ecx, [ebp - 0xe8]
lea eax, [ebp - 0xd8]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
cmp dword [ebp - 0x20], 0
je 0x407dcd
mov edx, dword [ebp - 0x20]
jmp 0x407dd2
mov edx, 0x4ba442
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x407ff5
push str.Run_Create
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, 0xc8
shl eax, 3
mov word [ebp - 0x74], 8
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
cdq
idiv ecx
mov esi, eax
test esi, esi
jg 0x407e1d
mov esi, 0xbb8
cmp esi, 0xbb8
jle 0x407e2a
mov esi, 0xbb8
mov edi, 0x64
jmp 0x407e58
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x88]
call fcn.00407688
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x407e61
push 0x64
call sub.KERNEL32.DLL_Sleep
mov ecx, edi
add edi, 0xffffffff
test ecx, ecx
jg 0x407e31
mov word [ebp - 0x74], 8
cmp dword [ebp - 0x90], 0
je 0x407f30
push 0x3e
call fcn.004776ad
mov edi, eax
push 0x3d
call fcn.004776ad
mov dword [ebp - 0x94], eax
push esi
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x407ea0
mov eax, dword [ebp - 0x94]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], edi
mov edx, dword [ebp - 0x88]
mov ecx, dword [edx + 0x3ec]
push ecx
mov eax, dword [ebp - 0xe8]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
je 0x407ec4
xor ebx, ebx
jmp 0x407f32
push str.user32.dll
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
test esi, esi
je 0x407f29
push str.IsHungAppWindow
push esi
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
je 0x407f1c
mov edx, dword [ebp - 0x90]
push edx
call eax
test eax, eax
je 0x407f15
push str.the_window_stops_responding
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
push 4
mov ecx, dword [ebp - 0xe8]
push ecx
call sub.KERNEL32.DLL_TerminateProcess
xor ebx, ebx
jmp 0x407f21
mov ebx, 1
jmp 0x407f21
mov ebx, 1
push esi
call sub.KERNEL32.DLL_FreeLibrary
jmp 0x407f32
mov ebx, 1
jmp 0x407f32
xor ebx, ebx
mov eax, dword [ebp - 0xe8]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0xe4]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
mov edx, 2
push eax
lea eax, [ebp - 0x20]
dec dword [ebp - 0x68]
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x408179
call sub.KERNEL32.DLL_GetLastError
push eax
push str.Create_New_Process_error__d
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 0xc
push 3
push 0
push 0
cmp dword [ebp - 4], 0
je 0x408020
mov eax, dword [ebp - 4]
jmp 0x408025
mov eax, 0x4ba4a6
push eax
push 0x4ba4a1
push 0
call sub.SHELL32.DLL_ShellExecuteA
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 0x20]
dec dword [ebp - 0x68]
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x68]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x408179
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10