Function at 0x476430
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3178
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x60f074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x8c]
push 0x44
push ebx
push eax
mov dword [ebp - 0x30], ebx
call fcn.0056f6e0
add esp, 0xc
mov dword [ebp - 0x8c], 0x44
cmp byte [edi + 8], bl
mov eax, 0x5cb60c
mov dword [ebp - 0x60], 1
cmove eax, dword [ebp - 0x84]
xor ecx, ecx
cmp byte [edi + 1], cl
mov dword [ebp - 0x84], eax
mov eax, 5
cmovne eax, ecx
mov ecx, dword [edi + 4]
mov word [ebp - 0x5c], ax
mov eax, dword [edi + 0xc]
neg eax
sbb eax, eax
and eax, 0x1000004
test ecx, ecx
je 0x476528
or eax, 0x400
mov dword [ebp - 0x30], ebx
push ebx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x476521
cmp dword [esi + 0x14], 8
jb 0x4764e6
mov esi, dword [esi]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x8c]
push eax
movzx eax, byte [edi + 2]
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push eax
push 0
push 0
push esi
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jne 0x476610
xor al, al
jmp 0x476707
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x476532
mov ecx, dword [esi]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x8c]
push edx
push 0
push 0
push eax
movzx eax, byte [edi + 2]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x476610
cmp dword [0x61a250], 2
jg 0x476598
push 2
push 0x13e
push str.f:my_lab_tabexplorerextab_masterlibrary_baseprocess_util.cpp
lea ecx, [ebp - 0x13c]
call fcn.0046c100
mov dword [ebp - 4], 0
lea ecx, [eax + 8]
mov ebx, 1
mov edx, str.create_error
mov dword [ebp - 0x30], ebx
call fcn.00403840
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4765af
lea ecx, [ebp - 0x13c]
call fcn.0046c520
push 0x3a8
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00472c20
add esp, 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x476609
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4765ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476723
push edx
push ecx
call fcn.0055053d
add esp, 8
xor al, al
jmp 0x476707
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4766e6
push dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4766dd
cmp dword [0x61a250], 2
jg 0x476669
push 2
push 0x149
push str.f:my_lab_tabexplorerextab_masterlibrary_baseprocess_util.cpp
lea ecx, [ebp - 0x13c]
call fcn.0046c100
mov dword [ebp - 4], 1
lea ecx, [eax + 8]
mov ebx, 2
mov edx, str.Could_not_AssignProcessToObject.
mov dword [ebp - 0x30], ebx
call fcn.00403840
test bl, 2
je 0x47667c
lea ecx, [ebp - 0x13c]
and ebx, 0xfffffffd
call fcn.0046c520
mov esi, dword [ebp - 0x44]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne cl
test eax, eax
je 0x4766bd
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x476521
test bl, 4
je 0x476521
lea ecx, [ebp - 0x13c]
call fcn.0046c520
xor al, al
jmp 0x476707
test cl, cl
jne 0x476521
test bl, 8
je 0x476521
lea ecx, [ebp - 0x1ec]
call fcn.0046c520
xor al, al
jmp 0x476707
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [edi], bl
je 0x476700
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x44]
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret
call fcn.00572795
int3