Function at 0x4c29520
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x7c
push ebx
push esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x4c29572
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 8], eax
jne 0x4c29592
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x94]
push 0x4c7c614
push eax
call fcn.04c29c10
add esp, 8
pop esi
mov eax, 4
pop ebx
add esp, 0x7c
ret
test esi, esi
mov dword [eax], 1
mov dword [eax + 8], esi
jne 0x4c295cd
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
push 0x4c7c614
push ecx
call fcn.04c29c10
add esp, 8
pop esi
mov eax, 4
pop ebx
add esp, 0x7c
ret
push ebp
mov ebp, dword [esp + 0x8c]
mov eax, ebp
push edi
lea edx, [eax + 1]
jmp 0x4c295e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c295e0
sub eax, edx
mov edx, dword [esp + 0x94]
mov ecx, dword [edx + 0x6c]
mov edx, dword [ecx]
push ebx
push edx
push 0
add eax, ebp
push str.___hn_u__u:_u_
push eax
call fcn.04c59ab5
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, 0x10
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
push eax
push 0x200
push eax
push eax
push eax
push ebp
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], 0x44
mov dword [esp + 0x9c], 1
mov word [esp + 0xa0], 7
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4c296a7
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x9c]
push 0x4c7c614
push ecx
call fcn.04c29c10
mov edx, dword [esp + 0x24]
add esp, 8
push edx
call esi
pop edi
pop ebp
pop esi
mov eax, 4
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.CSNTPLAT
call edi
push 1
push eax
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
call ebx
push 0x64
push esi
call ebp
test eax, eax
je 0x4c2975b
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4c296ff
cmp dword [esp + 0x14], 0x103
je 0x4c296c4
mov edx, dword [esp + 0x9c]
push 0x4c7c614
push edx
call fcn.04c29c10
add esp, 8
mov edi, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
push esi
call ebx
mov edx, dword [esp + 0x1c]
push edx
call ebx
test di, di
jne 0x4c29765
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4c29751
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x10]
mov di, word [ecx + 4]
jmp 0x4c29719
mov edx, dword [esp + 0x9c]
push edx
push edi
call fcn.04c2a940
add esp, 8
pop edi
pop ebp
pop esi
mov eax, 4
pop ebx
add esp, 0x7c
ret