Function at 0x10040958
Capabilities:
Connect pipe

Disassembly:
mov eax, 0x100605f6
call fcn.1005ea30
sub esp, 0xd4
push ebx
push esi
xor ebx, ebx
mov eax, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x64], eax
cmp byte [ebp + 0x18], bl
je 0x10040d56
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
cmp dword [edi + 0x10], ebx
je 0x10040d41
push 0x2e
pop eax
push 2
mov ecx, ebx
mov dword [ebp - 0x28], 0xc802fb00
mov byte [ebp - 0x24], 0xbc
mov word [ebp - 0x34], ax
pop esi
mov dword [ebp - 0x50], ecx
cmp esi, 2
jne 0x100409c2
push 3
pop ecx
push ecx
mov dword [ebp - 0x50], ecx
pop esi
jmp 0x100409f7
movzx edx, byte [ebp + esi - 0x27]
mov eax, esi
sub eax, ecx
push 1
movzx eax, byte [ebp + eax - 0x2a]
movzx eax, word [ebp + eax*2 - 0x34]
mov ecx, eax
and eax, edx
or ecx, edx
sub ecx, eax
movzx eax, byte [ebp + esi - 0x28]
mov word [ebp + eax*2 - 0x34], cx
lea eax, [ebp - 0x50]
push eax
call fcn.1003de61
pop ecx
pop ecx
mov ecx, dword [ebp - 0x50]
add esi, 2
cmp esi, 5
jb 0x100409b3
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x32], ax
lea ecx, [ebp - 0x8c]
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x7c], ebx
call fcn.100202ec
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 1
push eax
mov edx, edi
lea ecx, [ebp - 0x5c]
call fcn.1003ca27
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.10003f0d
mov edi, dword [ebp - 0x58]
mov eax, edi
mov esi, dword [ebp - 0x5c]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], edi
test eax, eax
jne 0x10040c4b
push 0x2d
pop eax
push 2
mov dword [ebp - 0x18], 0x29029900
mov byte [ebp - 0x14], 0x63
mov word [ebp - 0x38], ax
pop esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x2c], esi
cmp esi, 5
jae 0x10040bad
mov dword [ebp - 0x30], 0x5874
cmp dword [ebp - 0x30], 0x5b45
jle 0x10040b2a
mov esi, ebx
mov dword [ebp - 0x3c], ebx
mov edi, ebx
mov dword [ebp - 0x60], ebx
mov eax, esi
mov dword [ebp - 0x44], ebx
cdq
idiv edi
mov edi, ebx
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov esi, ebx
mov eax, edi
cdq
idiv esi
and edx, ecx
lea ecx, [ebp - 0xe0]
mov eax, edx
cdq
push edx
push eax
call fcn.10001a95
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10040adf
mov eax, dword [eax]
push eax
call fcn.10047ad3
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xe0]
call fcn.10003d9b
mov ecx, dword [ebp - 0x20]
inc esi
cmp esi, 0x4090
jl 0x10040abe
inc edi
cmp edi, 0x7589
jl 0x10040abc
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x3c]
inc edi
mov dword [ebp - 0x60], edi
cmp edi, 0x282d
jl 0x10040aad
inc esi
mov dword [ebp - 0x3c], esi
cmp esi, 0x390
jl 0x10040aa8
mov esi, dword [ebp - 0x2c]
movzx eax, byte [ebp - 0x18]
lea eax, [eax*2 + 2]
cmp esi, eax
jne 0x10040b49
movzx ecx, byte [ebp + esi - 0x18]
dec esi
add esi, ecx
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
jmp 0x10040ba5
cmp dword [ebp - 0x30], 0x5643
jge 0x10040b5d
push str.cmwccgwz_yrkfmc_uds_bgfi_hce_avdoyve
call fcn.10047ad3
pop ecx
mov dword [ebp - 4], 3
mov eax, esi
sub eax, dword [ebp - 0x48]
movzx edx, byte [ebp + esi - 0x17]
movzx eax, byte [ebp + eax - 0x1a]
movzx eax, word [ebp + eax*2 - 0x38]
mov ecx, eax
and eax, edx
or ecx, edx
sub ecx, eax
movzx eax, byte [ebp + esi - 0x18]
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x48]
push eax
push 0x56cd
push 0x5ae4
mov ecx, 0x1b4b
call fcn.1003f9bf
add esp, 0xc
add esi, 2
jmp 0x10040a83
xor eax, eax
mov dword [ebp - 0x90], 7
mov word [ebp - 0x36], ax
lea ecx, [ebp - 0xa4]
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x94], ebx
call fcn.100202ec
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 6
call fcn.1003ca27
pop ecx
mov esi, eax
lea eax, [ebp - 0x5c]
cmp eax, esi
je 0x10040c22
mov ecx, eax
call fcn.10041597
mov eax, dword [esi]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x49], bl
mov byte [ebp - 0x3d], bl
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea ecx, [ebp - 0xb0]
call fcn.10041597
push ebx
push 1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.10003f0d
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], esi
cmp esi, edi
je 0x10040d33
push esi
lea ecx, [ebp - 0xc8]
call fcn.10003866
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 8
push eax
push ebx
push 0x27ed
push 0x3691
mov edx, 0x557b
lea ecx, [ebp - 0x74]
call fcn.10040d77
mov dword [ebp - 0x2c], 0x65a1
add esp, 0x10
cmp dword [ebp - 0x2c], 0x6692
jle 0x10040cc9
mov edi, ebx
mov dword [ebp - 0x44], ebx
mov eax, ebx
mov ecx, 0x1007aeb8
or eax, edi
cdq
push edx
push eax
call fcn.10003751
inc ebx
cmp ebx, 0x2d0c
jl 0x10040ca0
inc edi
push 0
pop ebx
cmp edi, 0x24a5
jl 0x10040c9d
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2c], 0x6506
jge 0x10040d12
mov edx, str.pjtxbh_rghy_iipdw_kzeqlmor_dmhkg
mov ecx, 0x1007aeb8
call fcn.10005cf1
jmp 0x10040d12
push ebx
mov dword [ebp - 4], 8
lea ecx, [ebp - 0xc8]
push 1
mov byte [ebp - 4], 3
call fcn.10003f0d
add esi, 0x18
jmp 0x10040c4e
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.10041597
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.10041415
lea ecx, [ebp - 0x74]
call fcn.10041670
jmp 0x10040d66
mov byte [ebp - 0x19], bl
cmp byte [ebp - 0x19], bl
je 0x10040d66
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret