Function at 0x10005166
Capabilities:
Connect pipe

Disassembly:
mov eax, 0x1005adc2
call fcn.1005a768
sub esp, 0x14
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, edx
mov byte [ebp - 0x14], cl
je 0x100051d8
cmp byte [ebp + 0x24], 0
je 0x100051b6
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0
cmp dword [edx], 3
jge 0x1000539b
mov esi, dword [ebp + 0x30]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xb58e
inc dword [edx]
cmp dword [edx], 3
jl 0x1000519f
jmp 0x1000539b
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
jmp 0x100051ce
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xec2e
inc dword [edx]
cmp dword [edx], 1
jl 0x100051c1
jmp 0x1000539b
test cl, cl
je 0x10005204
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x100051fa
mov dword [ebp + 0x14], 0
cmp dword [ebp + 0x14], 0
jne 0x1000539b
inc dword [eax]
cmp dword [eax], 0x11
je 0x100051e7
jmp 0x1000539b
mov dword [ebp - 0x1c], 0x630a
cmp dword [ebp - 0x1c], 0x650e
jle 0x10005262
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor edi, edi
mov esi, 0x10075b18
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp + 0x14], 0x2677
xor ebx, ebx
mov eax, edi
mov ecx, esi
and eax, ebx
cdq
push edx
push eax
call fcn.10001b85
inc ebx
cmp ebx, 0x5e1f
jl 0x10005234
dec edi
dec dword [ebp + 0x14]
jne 0x10005232
mov edi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, 0x3937
jl 0x10005228
jmp 0x10005267
mov esi, 0x10075b18
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x5f69
jge 0x100052a1
mov edx, str.njdrj_tpniqg_cpzhzkjud_soakzshgz_ezitbs_aoexueqqs_kzjv_swbnnflg
mov ecx, esi
call fcn.100036dc
jmp 0x100052a1
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x768f
cmp dword [ebp - 0x1c], 0x7947
jle 0x100052e8
xor edi, edi
mov dword [ebp + 0x14], edi
mov ebx, edi
mov edi, 0x5d9c
mov eax, ebx
mov ecx, esi
cdq
push edx
push eax
call fcn.10001b85
dec ebx
dec edi
jne 0x100052c1
mov edi, dword [ebp + 0x14]
inc edi
mov dword [ebp + 0x14], edi
cmp edi, 0x1758
jl 0x100052ba
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x1c], 0x750d
jge 0x10005304
mov edx, str.fpq_ixwh_yvm_jwtbjgum_hzpins_fkl_lzt_qmjofr_ejlkrhp_gbvfstley_flhqhpdc_defun_upodkgqmy
mov ecx, esi
call fcn.100036dc
mov edx, dword [ebp + 0x2c]
cmp dword [edx], 0
je 0x1000530e
mov eax, dword [edx]
mov eax, dword [edx]
mov esi, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov edx, dword [edx]
mov eax, dword [ecx]
xor ecx, ecx
cmp eax, edx
mov eax, dword [esi]
sete cl
mov edx, dword [eax + 8]
mov eax, dword [edi]
sub ecx, eax
xor eax, eax
cmp edx, ecx
setne al
xor ecx, ecx
cmp edx, eax
mov eax, dword [edi]
setne cl
xor ebx, ebx
cmp ecx, eax
mov eax, dword [esi]
mov esi, dword [ebp + 0x2c]
setle bl
xor edx, edx
mov dword [eax + 8], ebx
mov eax, dword [esi]
cmp ebx, eax
mov eax, dword [esi]
setl dl
xor ecx, ecx
cmp edx, eax
setle cl
xor edx, edx
cmp ecx, 1
mov ecx, dword [edi]
mov eax, dword [esi]
setle dl
add ecx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp + 0x10]
setne dl
xor ecx, ecx
mov dword [eax], edx
mov eax, dword [eax]
cmp eax, 0x628e
mov eax, dword [ebp + 0x28]
sete cl
mov dword [eax], ecx
mov eax, dword [eax]
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret