Function at 0x4132f0
Capabilities:
Create process on windows
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x4b6e40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x818], edi
jg 0x4137cd
xor eax, eax
push 0x200
push eax
mov dword [ebp - 0x820], eax
mov byte [ebp - 0x610], al
lea eax, [ebp - 0x60f]
push eax
call fcn.0041c510
mov eax, dword [0x4bc88c]
add esp, 0xc
test eax, eax
cmove eax, esi
mov dword [0x4bc88c], eax
push 0x201
lea eax, [ebp - 0x40c]
push eax
push str.smmon.exe
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x40c]
push eax
call fcn.00472340
lea eax, [ebp - 0x40c]
push str.SMMON.EXE
push eax
call fcn.0041e470
add esp, 0xc
test eax, eax
je 0x4137e3
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
lea eax, [ebp - 0x610]
push str._windowhandle__u__parent_process_id__u
push eax
call fcn.0041bff0
xor ebx, ebx
add esp, 0x10
cmp dword [ebp + 0x10], ebx
jle 0x4137c6
mov edi, edi
push dword [edi + ebx*4]
push str._exe
call fcn.00438210
add esp, 8
test eax, eax
jne 0x413479
inc ebx
push 0x201
push dword [edi + ebx*4]
lea eax, [ebp - 0x208]
push eax
call fcn.004014ec
lea eax, [ebp - 0x208]
push eax
call fcn.00472340
lea eax, [ebp - 0x208]
push str..EXE
push eax
call fcn.0041e470
add esp, 0x18
test eax, eax
jne 0x413433
lea ecx, [ebp - 0x208]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x413418
mov eax, dword [str..EXE]
mov dword [ecx], eax
mov al, byte [0x4987c4]
mov byte [ecx + 4], al
jmp 0x41343d
cmp byte [eax + 4], 0
jne 0x4137e3
lea edx, [ebp - 0x208]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x413445
lea edi, [ebp - 0x40c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413455
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x40c]
mov dword [ebp - 0x820], edi
jmp 0x4134c6
lea ecx, [ebp - 0x610]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413482
mov esi, dword [edi + ebx*4]
sub ecx, edx
mov edx, esi
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x413493
sub edx, edi
lea eax, [ecx + edx]
cmp eax, 0x200
ja 0x4134d7
push esi
push 0x4987c8
lea eax, [ebp - 0x610]
push 0
push eax
call fcn.0041c2a0
add esp, 8
push eax
call fcn.0041bff0
add esp, 0xc
inc ebx
cmp ebx, dword [ebp + 0x10]
jge 0x4134d7
mov edi, dword [ebp - 0x818]
jmp 0x4133c0
mov eax, dword [ebp - 0x820]
test eax, eax
je 0x4137c6
lea ecx, [ebp - 0x40c]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4134f0
sub ecx, edx
lea eax, [ecx + 3]
cmp eax, 0x200
ja 0x413563
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x814]
push str.__s_
push eax
call fcn.0041bff0
lea ecx, [ebp - 0x814]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413527
sub ecx, edx
mov eax, 0x1ff
sub eax, ecx
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00421ea0
lea eax, [ebp - 0x814]
push eax
push 0x495ff1
push 0
push 3
call fcn.004017f8
add esp, 0x1c
cmp dword [0x4bc888], 0
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x41359c
push 0x10
push 8
call edi
push eax
call esi
mov dword [0x4bc888], eax
test eax, eax
je 0x4137e3
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
lea eax, [ebp - 0x208]
push eax
push str.SMSIGN.EXE
call fcn.00438210
add esp, 8
test eax, eax
jne 0x4137bf
mov eax, dword [0x4bc888]
cmp dword [eax + 8], 1
jge 0x4137bf
lea eax, [ebp - 0x208]
push eax
push str.Starting_client_process__s
push 0x495ff1
push 1
push 3
call fcn.004017f8
push str.Starting_client_process_n
call fcn.004017cb
add esp, 0x18
push 0x268
push 8
call edi
push eax
call esi
mov esi, eax
test esi, esi
je 0x41378f
push 0x268
push 0
push esi
call fcn.0041c510
lea ecx, [ebp - 0x208]
mov edx, esi
mov eax, ecx
add esp, 0xc
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x413620
push 0x201
push 0
push 0x4bc898
call fcn.0041c510
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x40c]
push eax
push str._s__s
push 0x4bc898
call fcn.0041bff0
add esp, 0x1c
lea eax, [esi + 0x250]
push eax
lea eax, [esi + 0x20c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x4bc898
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41376b
mov eax, dword [esi + 0x258]
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], 0
lea ecx, [ecx]
push 0
push 0x64
call ebx
lea eax, [ebp - 0x81c]
push eax
push 0x4140b0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x818], 0
je 0x4136b0
test eax, eax
je 0x413710
push esi
call fcn.00413d80
push dword [ebp - 0x818]
push dword [ebp - 0x81c]
call fcn.00413e60
push dword [0x4bc88c]
call fcn.0040136b
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
push str.Error____Process__s_did_not_start_correctly___HWND_enum_failed
push 0x495ff1
push 1
push 3
call fcn.004017f8
add esp, 0x14
push 0
push dword [esi + 0x250]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push dword [esi + 0x250]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.0040182a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
push str.Error____Memory_allocation_failed__s
push 0x495ff1
push 1
push 3
call fcn.004017f8
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret
push str.Error____Executable_not_supported.
jmp 0x4137d2
push str.Error____Cannot_start_client_process__executable_not_specified.
jmp 0x4137d2
push str.Error____Cannot_start_client_process__too_many_parameters_passed_from_server.
push 0x495ff1
push 0
push 3
call fcn.004017f8
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret