Function at 0x1004a114
Capabilities:
Connect pipe

Disassembly:
mov eax, 0x10080b0b
call fcn.1007f0f8
sub esp, 0x5c
mov dword [ebp - 0x38], 0x3185
mov dword [ebp - 0x38], 0x9beb0647
mov dword [ebp - 0x38], 0xfffffff8
push ebx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x38], 0xfaaaeb9a
mov dword [ebp - 0x38], 0xed680444
mov dword [ebp - 0x30], 0x7dfe4d9e
push esi
mov byte [ebp - 0xd], bl
mov esi, ecx
push edi
cmp byte [ebp - 0xd], bl
je 0x1004a166
push ebx
push ebx
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringByteLen]
inc dword [ebp - 0x30]
xor edi, edi
push esi
push 0x410f
push 0x5b60
inc edi
push edi
call fcn.100452ce
push esi
call fcn.1002fba8
add esp, 0x14
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], eax
push 3
call fcn.10017e9c
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], 0xca9f8d1
push edi
call fcn.10017e9c
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0xffff
mov dword [ebp - 0x34], 0xe128
mov dword [ebp - 0x18], ebx
jmp 0x1004a1d7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
mov dword [eax + ecx*4], 0x89b5
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jl 0x1004a1c7
mov dword [ebp - 0x18], ebx
jmp 0x1004a1f2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0xfffffffe
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
jl 0x1004a1e2
mov dword [ebp - 0x18], 0x1a
jmp 0x1004a3de
mov dword [ebp - 0x1c], 0xffab8c3a
mov dword [ebp - 0x28], 0xfffffff8
mov dword [ebp - 0x2c], 0x62ee6d05
mov dword [ebp - 0x24], 0xa9bacde9
mov dword [ebp - 0x1c], ebx
jmp 0x1004a277
mov dword [ebp - 0x20], 0x6eff
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x20], 1
push 1
call fcn.10017e9c
mov dword [ebp - 0x20], ebx
jmp 0x1004a252
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x50]
mov dword [eax + ecx*4], 0x19e95d1c
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 1
jl 0x1004a242
dec dword [ebp - 0x14]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x1004a26c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
lea ecx, [ebp - 0x50]
call fcn.10017f1e
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jle 0x1004a225
mov dword [ebp - 0x14], ebx
jmp 0x1004a3d1
mov dword [ebp - 0x20], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
cmp dword [eax + ecx*4], ebx
je 0x1004a37e
mov dword [ebp - 0x20], 0x6de21e5
lea ecx, [ebp - 0x5c]
push 3
call fcn.10017e9c
mov dword [ebp - 0x20], ebx
jmp 0x1004a2c1
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], 1
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 3
jl 0x1004a2b1
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x1004a2da
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
cmp dword [eax + ecx*4], ebx
je 0x1004a364
mov eax, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
sub ecx, 0x20250f4b
cmp ecx, eax
setge dl
xor ebx, ebx
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x44]
cmp edx, dword [eax + esi*4]
mov eax, dword [ebp - 0x28]
setne bl
xor ecx, ecx
cmp ebx, eax
mov eax, dword [ebp - 0x44]
setge cl
xor edx, edx
imul ecx, ecx, 0x566e
cmp ecx, dword [eax + edi*4]
setg dl
xor ebx, ebx
cmp edx, dword [ebp - 0x18]
jl 0x1004a344
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
cmp dword [eax + ecx*4], ebx
je 0x1004a344
xor eax, eax
inc eax
jmp 0x1004a346
mov eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [ebp - 0x34]
test eax, eax
setns cl
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x5c]
call fcn.10017f1e
jmp 0x1004a3c7
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
cmp dword [eax + ecx*4], ebx
je 0x1004a398
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov edx, 0xfff7
mov eax, dword [ebp - 0x44]
sub edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x18]
add eax, edx
jne 0x1004a3b8
mov eax, dword [ebp - 0x44]
cmp dword [eax], ebx
jne 0x1004a3b8
mov eax, ebx
jmp 0x1004a3bb
xor eax, eax
inc eax
cmp eax, 0xd92edcdd
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xffffffff
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jle 0x1004a285
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xfffffffe
jge 0x1004a204
lea ecx, [ebp - 0x68]
call fcn.10017f1e
lea ecx, [ebp - 0x44]
call fcn.10017f1e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret