Function at 0x534520
Capabilities:
Connect pipe
Create pipe
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x64a070]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x656c44]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x53457b
cmp dword [edi + 0x14], 8
jb 0x534556
mov eax, dword [edi]
jmp 0x534558
mov eax, edi
push eax
push str.Inside_initCommBridge__creating_pipe__s
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0xa
call ecx
add esp, 0x1c
jmp 0x5345ac
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x5345ac
cmp dword [edi + 0x14], 8
jb 0x53458f
mov edx, dword [edi]
jmp 0x534591
mov edx, edi
mov eax, dword [ecx]
push edx
push str.Inside_initCommBridge__creating_pipe__s
push str.CommBridge
push 0x5f8398
push 0xa
push ecx
call dword [eax + 0x34]
add esp, 0x18
lea ebx, [esi + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 0x4509a0
test eax, eax
je 0x5345cc
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x3c], 0x4509a0
mov dword [esi + 0x40], eax
cmp byte [esi + 0x39], 0
je 0x534669
mov eax, dword [0x656c44]
test eax, eax
je 0x534622
push str.Pipe_already_initialized.
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x1e
call eax
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534646
mov eax, dword [ecx]
push str.Pipe_already_initialized.
push str.CommBridge
push 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [esi + 0x44]
call fcn.00540870
cmp dword [edi + 0x14], 8
jb 0x53467b
mov eax, dword [edi]
jmp 0x53467d
mov eax, edi
push 0
push 0x5f8398
push dword [edi + 0x10]
push eax
call fcn.0040ac30
add esp, 0x10
test eax, eax
jne 0x5346ec
mov eax, dword [0x656c44]
test eax, eax
je 0x5346bf
push str.Pipe_name_is_empty.
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x28
call eax
jmp 0x53511f
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x535122
mov eax, dword [ecx]
push str.Pipe_name_is_empty.
push str.CommBridge
push 0x5f8398
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x14
jmp 0x535122
push edi
mov edx, str..pipe_
lea ecx, [esp + 0x1c]
call fcn.004220d0
add esp, 4
mov ecx, esi
push eax
call fcn.0040d2b0
mov eax, dword [esp + 0x2c]
cmp eax, 8
jb 0x53471e
inc eax
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.00409510
mov edx, dword [ebp + 8]
xor eax, eax
mov word [esp + 0x18], ax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
lea eax, [edx - 1]
cmp eax, 3
ja case.default.0x534744
jmp dword [eax*4 + 0x535148]
push str._OUT
lea eax, [esp + 0x34]
mov dword [esi + 0x18], 1
push esi
push eax
call fcn.0041ee80
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x53476d
mov eax, dword [eax]
push 0
push 0
push 0x3e8000
push 0x3e8000
push 1
push 1
push 2
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.004087d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edx, eax
cmp edi, 0xffffffff
je 0x534a61
test edi, edi
je 0x534a61
push 0x621c64
lea eax, [esp + 0x4c]
mov dword [esi + 0x74], edi
push esi
push eax
call fcn.0041ee80
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x5347cc
mov eax, dword [eax]
push 0
push 0
push 0x3e8000
push 0x3e8000
push 1
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.004087d0
call ebx
mov edx, eax
cmp edi, 0xffffffff
je 0x5349e1
test edi, edi
je 0x5349e1
mov eax, dword [0x656c44]
mov dword [esi + 0x70], edi
test eax, eax
je 0x53483b
push edi
push dword [esi + 0x74]
push str.Pipe_initialization_complete_with_outPipe___p__inPipe___p
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0xa
call eax
add esp, 0x20
xor edi, edi
jmp 0x534876
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534863
mov eax, dword [ecx]
push edi
push dword [esi + 0x74]
push str.Pipe_initialization_complete_with_outPipe___p__inPipe___p
push str.CommBridge
push 0x5f8398
push 0xa
push ecx
call dword [eax + 0x34]
add esp, 0x1c
xor edi, edi
jmp 0x534876
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [esi + 0x70]
inc edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x53488d
mov ebx, 1
jmp 0x534899
call ebx
xor ebx, ebx
cmp eax, 0x217
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x5348bb
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x1c20
jl 0x534870
inc edi
push 0
push 0
push 0
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
cmp edi, 0x1c21
jne 0x53495a
mov eax, dword [0x656c44]
test eax, eax
je 0x534905
push dword [esp + 0x10]
push str.Number_of_retries_to_connect_inPipe_exhausted_with_latest_err___lu.
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call eax
add esp, 0x1c
jmp 0x53492d
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x53492d
push dword [esp + 0x10]
push str.Number_of_retries_to_connect_inPipe_exhausted_with_latest_err___lu.
mov eax, dword [ecx]
push str.CommBridge
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov ecx, esi
call fcn.00535690
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x18
push 0
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x534970
mov ebx, 1
jmp 0x534980
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x217
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
test ebx, ebx
jne 0x534f5d
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x5349ba
push edx
push str.Couldnt_connect_to_outPipe__error_code__lu
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call ecx
jmp 0x534a31
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534a34
mov eax, dword [ecx]
push edx
push str.Couldnt_connect_to_outPipe__error_code__lu
push str.CommBridge
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x534a34
mov eax, dword [0x656c44]
test eax, eax
je 0x534a0e
push edx
push edi
push str.Creating_in_NamedPipe_returned_invalid_handle__p__with_error_code__lu
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call eax
add esp, 0x20
jmp 0x534a34
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534a34
mov eax, dword [ecx]
push edx
push edi
push str.Creating_in_NamedPipe_returned_invalid_handle__p__with_error_code__lu
push str.CommBridge
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov ecx, esi
call fcn.00535690
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [0x656c44]
test eax, eax
je 0x534ab2
push edx
push edi
push str.Creating_out_NamedPipe_returned_invalid_handle__p__with_error_code__lu
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call eax
add esp, 0x20
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534ad8
push edx
push edi
push str.Creating_out_NamedPipe_returned_invalid_handle__p__with_error_code__lu
mov eax, dword [ecx]
push str.CommBridge
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x1c
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x18
push str._OUT
lea eax, [esp + 0x64]
mov dword [esi + 0x18], 1
push esi
push eax
call fcn.0041ee80
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x534b20
mov eax, dword [eax]
push 0
push 0
push 0x3e8000
push 0x3e8000
push 1
push 1
push 2
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [esp + 0x60]
mov edi, eax
call fcn.004087d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edx, eax
cmp edi, 0xffffffff
je 0x534c65
test edi, edi
je 0x534c65
mov eax, dword [0x656c44]
mov dword [esi + 0x74], edi
test eax, eax
je 0x534b92
push edi
push str.Pipe_initialization_complete_with_outPipe___p
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0xa
call eax
add esp, 0x1c
xor edi, edi
jmp 0x534bc6
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534bb7
mov eax, dword [ecx]
push edi
push str.Pipe_initialization_complete_with_outPipe___p
push str.CommBridge
push 0x5f8398
push 0xa
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor edi, edi
jmp 0x534bc6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [esi + 0x74]
inc edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x534bdd
mov ebx, 1
jmp 0x534be9
call ebx
xor ebx, ebx
cmp eax, 0x217
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [esp + 0x10], edx
test ebx, ebx
jne 0x534c11
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x1c20
jl 0x534bc0
mov edx, dword [esp + 0x10]
inc edi
cmp edi, 0x1c21
jne 0x534f5d
mov eax, dword [0x656c44]
test eax, eax
je 0x534c4c
push edx
push str.Number_of_retries_to_connect_outPipe_exhausted_with_latest_err___lu.
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call eax
add esp, 0x1c
jmp 0x53492d
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x53492d
push edx
push str.Number_of_retries_to_connect_outPipe_exhausted_with_latest_err___lu.
jmp 0x534918
mov eax, dword [0x656c44]
test eax, eax
jne 0x534a6a
jmp 0x534ab2
xor edx, edx
mov dword [esi + 0x18], 3
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edi, [edx + 1]
nop dword [eax + eax]
mov eax, dword [esi + 0x70]
cmp eax, 0xffffffff
je 0x534c9c
test eax, eax
jne 0x534cf1
push str._OUT
lea eax, [esp + 0x7c]
mov dword [esi + 0x70], 0
push esi
push eax
call fcn.0041ee80
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x534cbe
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x78]
mov dword [esi + 0x70], eax
call fcn.004087d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [esp + 0x10], eax
jmp 0x534cf7
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x74]
cmp ecx, 0xffffffff
je 0x534d03
test ecx, ecx
jne 0x534d56
push 0x621c64
lea eax, [esp + 0x94]
mov dword [esi + 0x74], 0
push esi
push eax
call fcn.0041ee80
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x534d28
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x90]
mov dword [esi + 0x74], eax
call fcn.004087d0
call ebx
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x70]
cmp ecx, 0xffffffff
je 0x534d6e
test ecx, ecx
je 0x534d6e
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x534d6e
test eax, eax
jne 0x534d8f
cmp edi, 0x57e40
je 0x534df6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x57e40
jle 0x534c90
mov eax, dword [0x656c44]
test eax, eax
je 0x534dc3
push dword [esi + 0x70]
push dword [esi + 0x74]
push str.Pipe_initialization_complete_with_outPipe___p__inPipe___p
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0xa
call eax
add esp, 0x20
jmp 0x534f5d
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534fac
push dword [esi + 0x70]
mov eax, dword [ecx]
push dword [esi + 0x74]
push str.Pipe_initialization_complete_with_outPipe___p__inPipe___p
push str.CommBridge
push 0x5f8398
push 0xa
push ecx
call dword [eax + 0x34]
add esp, 0x1c
jmp 0x534f5d
mov eax, dword [0x656c44]
test eax, eax
je 0x534e3b
mov edx, dword [esp + 0x14]
push edx
push dword [esi + 0x74]
mov edx, dword [esp + 0x18]
push edx
push dword [esi + 0x70]
push str.Number_of_retries_to_create_pipe_exhausted_with_latest_inPipe_handle___p__err_code___lu_and_outPipe_handle___p__err_code___lu.
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call eax
add esp, 0x28
mov ecx, esi
call fcn.00535690
jmp 0x534ad8
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534e6f
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push edx
push dword [esi + 0x74]
mov edx, dword [esp + 0x18]
push edx
push dword [esi + 0x70]
push str.Number_of_retries_to_create_pipe_exhausted_with_latest_inPipe_handle___p__err_code___lu_and_outPipe_handle___p__err_code___lu.
push str.CommBridge
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x24
mov ecx, esi
call fcn.00535690
jmp 0x534ad8
mov dword [esi + 0x18], 3
mov edi, 1
nop word [eax + eax]
push str._OUT
lea eax, [esp + 0xac]
push esi
push eax
call fcn.0041ee80
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x534eae
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0xa8]
mov ebx, eax
call fcn.004087d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp ebx, 0xffffffff
je 0x534ee6
test ebx, ebx
jne 0x534f05
cmp edi, 0x57e40
je 0x535087
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x57e40
jle 0x534e90
jmp 0x534f08
mov dword [esi + 0x70], ebx
mov eax, dword [0x656c44]
test eax, eax
je 0x534f36
push dword [esi + 0x74]
push str.Pipe_initialization_complete_with_outPipe___p
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0xa
call eax
add esp, 0x1c
jmp 0x534f5d
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534fac
push dword [esi + 0x74]
mov eax, dword [ecx]
push str.Pipe_initialization_complete_with_outPipe___p
push str.CommBridge
push 0x5f8398
push 0xa
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov eax, dword [0x656c44]
test eax, eax
je 0x534f88
push str.initCommBridge__pipes_successfully_initialized
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0xa
call eax
add esp, 0x18
jmp 0x534fac
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534fac
mov eax, dword [ecx]
push str.initCommBridge__pipes_successfully_initialized
push str.CommBridge
push 0x5f8398
push 0xa
push ecx
call dword [eax + 0x34]
add esp, 0x14
cmp dword [ebp + 8], 2
mov byte [esi + 0x39], 1
je 0x535064
lea eax, [esp + 0xc0]
mov byte [esi + 0x38], 1
push eax
push 0
push esi
push 0x534060
push 0
push 0
mov dword [esp + 0xd8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x1c], 0
mov edx, eax
jne 0x535064
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x53502f
push edx
push str.Thread_creation_for_listener_failed_with_error_code__lu
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call ecx
add esp, 0x1c
mov byte [esi + 0x38], 0
mov ecx, esi
call fcn.00535690
jmp 0x534ad8
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x535054
mov eax, dword [ecx]
push edx
push str.Thread_creation_for_listener_failed_with_error_code__lu
push str.CommBridge
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov ecx, esi
mov byte [esi + 0x38], 0
call fcn.00535690
jmp 0x534ad8
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [0x656c44]
test eax, eax
je 0x5350b7
push edx
push ebx
push str.Number_of_retries_to_create_pipe_exhausted_with_Pipe_handle___p__err_value___lu.
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call eax
add esp, 0x20
jmp 0x534ad8
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534ad8
push edx
push ebx
push str.Number_of_retries_to_create_pipe_exhausted_with_Pipe_handle___p__err_value___lu.
jmp 0x534ac3
mov eax, dword [0x656c44]
test eax, eax
je 0x5350fd
push edx
push str.Wrong_pipe_context_passed__i.
push 0x5f8398
push 0x5f8398
push str.CommBridge
push 0x61c4f4
push 0x32
call eax
add esp, 0x1c
jmp 0x535122
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x535122
mov eax, dword [ecx]
push edx
push str.Wrong_pipe_context_passed__i.
push str.CommBridge
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc4]
mov eax, 0xfffffff9
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x18