Function at 0x404380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x42cf34]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x314], 2
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00407d10
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x310]
push ecx
call fcn.00407d10
add esp, 0xc
mov edx, dword [0x42fbbc]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
add ecx, 0x44
push ecx
mov edx, dword [ebp + 8]
push edx
push str._spipe_s
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.00402750
add esp, 0x14
cmp eax, 0xffffffff
jne 0x404433
mov ecx, 1
imul edx, ecx, 0x103
mov dword [ebp - 0x318], edx
cmp dword [ebp - 0x318], 0x104
jae 0x404420
jmp 0x404425
call fcn.0040722d
mov eax, dword [ebp - 0x318]
mov byte [ebp + eax - 0x108], 0
cmp dword [ebp - 0x314], 2
jne 0x404481
push 0x7530
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
jne 0x404473
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x314], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40447d
mov dword [ebp - 0x314], 0
jmp 0x404481
push str.___Connecting_to_incognita_service_named_pipe_n
call fcn.00402030
add esp, 4
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x42fbbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x404509
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x42fbbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0x14], eax
jmp 0x4044c0
mov edx, dword [0x42fbbc]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
cmp dword [ecx + 0x14], 0xffffffff
jne 0x40453a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42c594
call fcn.00402030
add esp, 8
jmp 0x4046f2
push 0
push 0
push 3
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x42fbbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x4045b5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x42fbbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0x10], eax
jmp 0x40456c
mov edx, dword [0x42fbbc]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
cmp dword [ecx + 0x10], 0xffffffff
jne 0x4045e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Failed_to_create_a_new_client_side_pipe:_error__d_n
call fcn.00402030
add esp, 8
jmp 0x4046f2
mov dword [ebp - 0x31c], 2
push 0
push 0
lea edx, [ebp - 0x31c]
push edx
mov eax, dword [0x42fbbc]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push 0
push 0
lea ecx, [ebp - 0x31c]
push ecx
mov edx, dword [0x42fbbc]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov eax, dword [0x42fbbc]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
add edx, 0x44
push edx
push str.___Successfully_connected_to_named_pipe__s_n
call fcn.00402030
add esp, 8
push str.___Redirecting_I_O_to_remote_process_n
call fcn.00402030
add esp, 4
cmp dword [0x431308], 0
jne 0x404684
push str.AAAAAA_n
call fcn.00401e00
add esp, 4
mov eax, 4
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x328]
push edx
push 0
mov eax, dword [0x42fbbc]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0x14]
push eax
push 0x404700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 4
shl ecx, 0
lea edx, [ebp + ecx - 0x328]
push edx
push 0
mov eax, dword [0x42fbbc]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0x10]
push eax
push 0x404790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070d2
mov esp, ebp
pop ebp
ret