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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi]
sub eax, ebx
je 0x40379e
sub eax, 1
lea edi, [esi + 0x78]
push edi
push dword [esi + 8]
je 0x403693
call fcn.00405e37
pop ecx
pop ecx
mov dword [esi + 0x44], eax
mov dword [esi + 0x3c], eax
cmp dword [edi], ebx
je 0x403572
cmp dword [esi + 0x30], ebx
je 0x4036ac
push dword [esi + 0x30]
call fcn.004760d1
pop ecx
mov dword [esi + 0x30], ebx
jmp 0x4036ac
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x3c], ebx
mov eax, dword [eax + 0xc]
cmp dword [eax + 4], ebx
je 0x403595
push dword [eax + 4]
call fcn.004760d1
mov eax, dword [esi + 0x10]
pop ecx
mov eax, dword [eax + 0xc]
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x10]
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x48]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x10]
push ecx
push 0x40149a
push str.closed
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 4]
push eax
mov dword [esi + 0x4c], eax
call fcn.004763f0
add esp, 0x14
cmp dword [esi + 0x10], ebx
je 0x4035d4
push dword [esi + 0x10]
call fcn.00475e17
pop ecx
mov ecx, eax
jmp 0x4035d6
mov ecx, ebx
mov eax, dword [esi + 0x10]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ecx
push edi
mov eax, dword [eax + 0xc]
push str._re_frida_Helper
mov eax, dword [eax + 4]
push eax
push ecx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
call fcn.004b3ac1
mov ecx, eax
add esp, 0x10
mov dword [esi + 0x64], ecx
mov dword [esi + 0x58], ecx
cmp dword [edi], ebx
je 0x403632
cmp dword [esi + 0x50], ebx
je 0x403618
push dword [esi + 0x50]
call fcn.004760d1
pop ecx
mov dword [esi + 0x50], ebx
cmp dword [esi + 0x3c], ebx
je 0x403558
push dword [esi + 0x3c]
call fcn.004760d1
pop ecx
mov dword [esi + 0x3c], ebx
jmp 0x403558
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
push eax
mov dword [esi + 0x68], eax
call fcn.00406575
pop ecx
cmp dword [esi + 0x50], ebx
je 0x40365f
push dword [esi + 0x50]
call fcn.004760d1
pop ecx
mov dword [esi + 0x50], ebx
cmp dword [esi + 0x3c], ebx
je 0x403670
push dword [esi + 0x3c]
call fcn.004760d1
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x30], ebx
je 0x403681
push dword [esi + 0x30]
call fcn.004760d1
pop ecx
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x14], ebx
je 0x4036f4
push dword [esi + 0x14]
call fcn.004760d1
mov dword [esi + 0x14], ebx
jmp 0x4036f3
push dword [esi + 0x34]
call fcn.004b1130
add esp, 0xc
mov dword [esi + 0x38], eax
mov dword [esi + 0x30], eax
cmp dword [edi], ebx
je 0x40377f
cmp dword [esi + 0x14], ebx
je 0x4036bd
push dword [esi + 0x14]
call fcn.004760d1
pop ecx
mov dword [esi + 0x14], ebx
mov eax, dword [edi]
mov dword [esi + 0x6c], eax
mov dword [edi], ebx
mov dword [esi + 0x70], eax
mov eax, dword [eax + 8]
push eax
push str.Unable_to_start:__s_n
mov dword [esi + 0x74], eax
call fcn.00445886
push dword [esi + 0x10]
call fcn.0040350d
add esp, 0xc
cmp dword [esi + 0x6c], ebx
je 0x4036f4
push dword [esi + 0x6c]
call fcn.004416ba
mov dword [esi + 0x6c], ebx
pop ecx
mov eax, dword [edi]
test eax, eax
je 0x403738
push dword [eax + 4]
push dword [eax]
call fcn.004413f1
pop ecx
push eax
mov eax, dword [edi]
push dword [eax + 8]
push 0x9e5
push str.D:_a_frida_frida_build_tmp_windowsWin32_Release_frida_helper_32_frida_helper_service.c
push str.file__s:_line__d:_uncaught_error:__s___s___d_
push 8
push ebx
call fcn.0044512e
push edi
call fcn.0044162e
push dword [esi + 0xc]
call fcn.004760d1
add esp, 0x28
jmp 0x4037fd
push ebx
push esi
push dword [esi + 0xc]
call fcn.004096ae
add esp, 0xc
cmp dword [esi], ebx
je 0x403774
push dword [esi + 0xc]
call fcn.00409232
pop ecx
jmp 0x403770
push 1
push dword [esi + 0xc]
call fcn.0040923d
pop ecx
push eax
call fcn.004427a9
push dword [esi + 0xc]
call fcn.00409232
add esp, 0xc
test eax, eax
je 0x403754
push dword [esi + 0xc]
call fcn.004760d1
pop ecx
jmp 0x4037fd
push esi
push 0x40382b
push ebx
push ebx
push 0x10
push ebx
push eax
mov dword [esi + 0x40], eax
mov dword [esi], 2
call fcn.00405df2
add esp, 0x1c
jmp 0x4037fd
call fcn.00403d81
push ebx
push eax
push str.pipe:roleclient_name
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call fcn.00447c0a
push ebx
push eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
call fcn.004b1eb3
push dword [esi + 0x24]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.00441dce
push dword [esi + 0x1c]
mov dword [esi + 0x24], ebx
call fcn.00441dce
mov eax, dword [esi + 0x2c]
push esi
push 0x40382b
push ebx
push eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x34], eax
mov dword [esi], 1
call fcn.004b1101
add esp, 0x2c
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret