Function at 0x403e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x563491
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x5df890]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5df890]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x51c]
mov ebp, dword [esp + 0x518]
mov dword [esp + 0x20], eax
mov dword [esp + 0x4d4], 1
mov ecx, dword [esp + 0x4fc]
mov edi, 0x10
cmp dword [esp + 0x510], edi
jae 0x403eb4
lea ecx, [esp + 0x4fc]
mov eax, dword [esp + 0x4e0]
cmp dword [esp + 0x4f4], edi
jae 0x403ecb
lea eax, [esp + 0x4e0]
push ecx
push eax
push str._s__s
push str.CExecutProcess::ExecuteBlock
call fcn.0055e8c0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x50], esp
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x500]
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401d50
call fcn.0055d660
add esp, 0x1c
cmp al, bl
jne 0x403f5f
cmp dword [esp + 0x4f4], edi
jb 0x403f2a
mov eax, dword [esp + 0x4e0]
push eax
call fcn.0041d541
add esp, 4
mov dword [esp + 0x4f4], esi
mov dword [esp + 0x4f0], ebx
mov byte [esp + 0x4e0], bl
cmp dword [esp + 0x510], edi
jb 0x403f58
mov ecx, dword [esp + 0x4fc]
push ecx
call fcn.0041d541
add esp, 4
xor al, al
jmp 0x404358
push ebx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x64], 0xc
mov dword [esp + 0x6c], 1
mov dword [esp + 0x68], ebx
call dword [0x5663b8]
mov edx, dword [esp + 0x14]
push ebx
push 1
push edx
call dword [0x5663b4]
push 0x44
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.0043bff0
mov cx, word [esp + 0x520]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x7c], 0x44
mov word [esp + 0xac], cx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xa8], 0x101
cmp dword [esp + 0x50c], ebx
je 0x404096
lea edx, [esp + 0x4dc]
push edx
mov edi, 0x5cf96c
lea esi, [esp + 0x64]
call fcn.00404490
lea ecx, [esp + 0x4fc]
push ecx
push eax
lea edi, [esp + 0x44]
mov byte [esp + 0x4e0], 2
call fcn.00404540
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x4e0], 3
call fcn.00401d50
mov esi, 0x10
cmp dword [esp + 0x50], esi
jb 0x404069
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041d541
add esp, 4
mov byte [esp + 0x4d4], 1
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x78], esi
jb 0x404094
mov eax, dword [esp + 0x64]
push eax
call fcn.0041d541
add esp, 4
mov edi, esi
mov eax, dword [esp + 0x4e0]
cmp dword [esp + 0x4f4], edi
jae 0x4040ad
lea eax, [esp + 0x4e0]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x80]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ebx
call dword [0x5663b0]
cmp eax, ebx
jne 0x404102
call dword [0x5663ac]
push eax
push str.CExecutProcess::ExecuteBlock
push 0x5cf970
push str.CExecutProcess::ExecuteBlock
call fcn.0055e8c0
add esp, 0x10
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
jmp 0x4042b5
mov eax, dword [esp + 0x24]
push eax
call fcn.00403d70
add esp, 4
cmp ebp, ebx
je 0x40411f
mov ecx, dword [esp + 0x24]
push ebp
push ecx
call dword [0x5663a8]
push 0x3ff
lea edx, [esp + 0xc9]
push ebx
push edx
mov byte [esp + 0xd0], bl
call fcn.0043bff0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ebx
push 0x5cf898
call fcn.004016f0
cmp dword [esp + 0x14], ebx
je 0x4042b5
push str.read_pipe
push str.CExecutProcess::ExecuteBlock
mov dword [esp + 0x20], ebx
call fcn.0055e8c0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [0x5663a4]
add esp, 8
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push ebx
push ecx
call ebp
test eax, eax
je 0x404286
mov edi, dword [0x5663a0]
cmp dword [esp + 0x18], ebx
je 0x404297
push 0x400
lea edx, [esp + 0xc8]
push ebx
push edx
call fcn.0043bff0
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
lea eax, [esp + 0x38]
push eax
push 0x3ff
lea ecx, [esp + 0xd0]
push ecx
push edx
call edi
cmp eax, ebx
je 0x40429e
cmp dword [esp + 0x34], ebx
je 0x40429e
lea eax, [esp + 0xc4]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4041f5
sub eax, edx
push eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x40]
call fcn.004016f0
mov esi, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x3c]
push ecx
or eax, 0xffffffff
mov byte [esp + 0x4dc], 4
call fcn.004043a0
mov byte [esp + 0x4d4], 1
cmp dword [esp + 0x50], 0x10
jb 0x404246
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041d541
add esp, 4
push str.continue_peek
push str.CExecutProcess::ExecuteBlock
call fcn.0055e8c0
push str.read_pipe
push str.CExecutProcess::ExecuteBlock
mov dword [esp + 0x28], ebx
call fcn.0055e8c0
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push ebx
push ecx
call ebp
test eax, eax
jne 0x40418f
lea edi, [eax + 0x10]
push str.PeekNamedPipe_fail
push str.CExecutProcess::ExecuteBlock
call fcn.0055e8c0
jmp 0x4042b2
push str.dwAvalibal_is_zero
jmp 0x4042a3
push str.read_file_fail
push str.CExecutProcess::ExecuteBlock
call fcn.0055e8c0
mov edi, 0x10
add esp, 8
mov eax, dword [esp + 0x24]
mov esi, dword [0x56639c]
cmp eax, ebx
je 0x4042c6
push eax
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4042d1
push eax
call esi
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], edi
jb 0x4042df
mov eax, dword [eax + 4]
jmp 0x4042e2
add eax, 4
push eax
push str.result___s
push str.CExecutProcess::ExecuteBlock
call fcn.0055e8c0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x404300
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40430b
push eax
call esi
cmp dword [esp + 0x4f4], edi
jb 0x404324
mov edx, dword [esp + 0x4e0]
push edx
call fcn.0041d541
add esp, 4
mov dword [esp + 0x4f4], 0xf
mov dword [esp + 0x4f0], ebx
mov byte [esp + 0x4e0], bl
cmp dword [esp + 0x510], edi
jb 0x404356
mov eax, dword [esp + 0x4fc]
push eax
call fcn.0041d541
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0043a097
add esp, 0x4c4
ret