Function at 0x6da544ca
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xcc
mov eax, dword [0x6da6df10]
xor eax, ebp
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x70]
push ebx
push esi
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x74]
push edi
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x78]
xor ebx, ebx
push 0x40
mov dword [ebp + 0x34], eax
lea eax, [ebp - 0x64]
push ebx
push eax
mov esi, ecx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp - 0x68], 0x44
call sub.msvcr100.dll_memset
mov eax, dword [esi]
mov dword [ebp + 0x1c], eax
lea eax, [esi + 8]
mov dword [ebp + 0x2c], eax
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp + 0x20], eax
lea edi, [esi + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov ebx, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp + 0x24], eax
call ebx
push 0xfffffffffffffff5
mov dword [ebp + 0x10], eax
call ebx
push 0xfffffffffffffff4
mov dword [ebp + 0x14], eax
call ebx
mov dword [ebp + 0x18], eax
xor ebx, ebx
mov eax, dword [ebp + ebx + 0x10]
cmp eax, 0xffffffff
je 0x6da5459b
lea ecx, [ebp + 0x28]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x6da54581
mov eax, dword [ebp + 0x28]
and eax, 1
jmp 0x6da54583
xor eax, eax
test eax, eax
je 0x6da5459b
xor eax, eax
inc eax
push 0
push eax
push dword [ebp + ebx + 0x10]
mov dword [ebp + ebx + 0x48], eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
add ebx, 4
cmp ebx, 0x18
jl 0x6da54561
push dword [ebp + 0x3c]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0xc], 0
lea ebx, [ebp - 0x30]
lea eax, [ebp - 0x14]
call fcn.6da54429
pop ecx
test eax, eax
je 0x6da546f5
push dword [ebp + 0x3c]
mov esi, dword [ebp + 0x2c]
or dword [ebp - 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ebx, [ebp - 0x2c]
lea eax, [ebp - 8]
mov dword [ebp], 1
call fcn.6da54429
pop ecx
test eax, eax
je 0x6da546e4
or eax, 0xffffffff
cmp byte [ebp + 0x7c], 0
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 1
je 0x6da54612
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov dword [edi], eax
mov dword [edi + 4], eax
jmp 0x6da5462b
push dword [ebp + 0x3c]
lea ebx, [ebp - 0x28]
lea eax, [ebp + 4]
mov esi, edi
call fcn.6da54429
pop ecx
test eax, eax
je 0x6da546b4
mov esi, 0x8000400
call dword [sym.imp.kernel32.dll_GetConsoleWindow]
test eax, eax
je 0x6da5465d
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x30], eax
je 0x6da54658
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x2c], eax
je 0x6da54658
cmp byte [ebp + 0x7c], 0
jne 0x6da54653
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x28], eax
jne 0x6da5465d
mov esi, 0x400
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x34]
mov dword [ebp - 0x3c], 0x100
push dword [ebp + 0x30]
push esi
push 1
xor esi, esi
push esi
push esi
push dword [ebp + 0x38]
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
jne 0x6da54697
push dword [ebp + 0x3c]
mov edi, str.CreateProcess
call fcn.6da5e020
pop ecx
jmp 0x6da546b4
cmp dword [ebp - 0x20], 0xffffffff
je 0x6da546a6
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cdq
mov dword [ebp + 0x40], eax
or eax, edx
mov dword [ebp + 0x44], edx
jne 0x6da546b9
xor eax, eax
inc eax
jmp 0x6da546bb
xor eax, eax
push eax
lea eax, [ebp + 4]
call fcn.6da54495
mov eax, dword [ebp + 0x40]
or eax, dword [ebp + 0x44]
pop ecx
jne 0x6da546d0
inc eax
jmp 0x6da546d2
xor eax, eax
push eax
lea eax, [ebp - 8]
call fcn.6da54495
mov eax, dword [ebp + 0x40]
or eax, dword [ebp + 0x44]
pop ecx
jne 0x6da546e9
xor eax, eax
inc eax
jmp 0x6da546eb
xor eax, eax
push eax
lea eax, [ebp - 0x14]
call fcn.6da54495
pop ecx
xor esi, esi
mov eax, dword [ebp + esi + 0x24]
cmp eax, 0xffffffff
je 0x6da54713
xor ecx, ecx
cmp dword [ebp + esi + 0x5c], ecx
setne cl
push ecx
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
sub esi, 4
cmp esi, 0xffffffec
jge 0x6da546f7
mov ecx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6da62890
add ebp, 0x64
leave
ret