Function at 0x4492b6
Capabilities:
Create process on windows
Query service status
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56d3cc
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, closesocket
mov dword [esp + 0x14], 1
push esi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x44936d
push esi
push str.SharedAccess
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x449332
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x44936d
lea eax, [esp + 0xc8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x449356
xor eax, eax
cmp dword [esp + 0xcc], 1
sete al
mov dword [esp + 0x14], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [esp + 0x14], 0
je 0x4496b7
mov edi, str.KGUPnP.exe
lea ecx, [esp + 0x80]
push edi
call fcn.0040763f
xor eax, eax
push eax
push eax
mov dword [esp + 0x198], eax
lea eax, [esp + 0x88]
push eax
call fcn.00562270
or dword [esp + 0x19c], 0xffffffff
lea ecx, [esp + 0x8c]
add esp, 0xc
xor esi, esi
inc esi
push 0
push esi
call fcn.00401d04
lea ecx, [esp + 0x98]
call fcn.0053f1f0
lea eax, [esp + 0x98]
mov dword [esp + 0x190], esi
push eax
push 2
call fcn.00561450
pop ecx
pop ecx
test al, al
je 0x44969c
push edi
lea ecx, [esp + 0x84]
call fcn.0040763f
lea eax, [esp + 0x80]
mov byte [esp + 0x190], 2
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xa0]
call fcn.0053f2e0
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x194], 3
call fcn.0053f2c0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x190], 2
call fcn.0053f210
push 0
push esi
lea ecx, [esp + 0x88]
mov byte [esp + 0x198], 1
call fcn.00401d04
and dword [esp + 0x24], 0
lea edi, [esp + 0x28]
xor eax, eax
stosd dword es:[edi], eax
push 0x40
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], ax
lea ecx, [esp + 0xf0]
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x60], 0x81
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x20], eax
movzx eax, word [ebx + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
push str._s_1__d__d__d
mov dword [esp + 0x18], eax
call fcn.0043bf02
lea ecx, [esp + 0x98]
mov byte [esp + 0x190], 4
push ecx
mov ecx, eax
call fcn.0043c0f1
lea ecx, [esp + 0x14]
mov dword [esp + 0x84], fcn.00401580
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x80]
mov ecx, eax
mov dword [esp + 0x88], 0x44f9ae
call fcn.0043d07e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x84], fcn.00401580
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x80]
mov ecx, eax
mov dword [esp + 0x88], 0x43d891
call fcn.0043d07e
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0043c14d
mov edx, eax
lea ecx, [esp + 0xb0]
call fcn.0043c119
lea ecx, [esp + 0xe4]
call fcn.0043a0dc
push str.KGUPnP_UDP_TCP_PORT
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor edx, edx
mov dword [esp + 0x1c], eax
mov esi, edx
test eax, eax
je 0x44958e
push 4
push edx
push edx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
xor edx, edx
test esi, esi
je 0x44958e
mov dword [esi], edx
cmp dword [esp + 0xc4], 8
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push edx
push edx
push edx
push edx
push edx
lea ecx, [esp + 0xcc]
cmovae ecx, dword [esp + 0xcc]
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x449676
push 0xea60
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44966a
and dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44966a
cmp dword [esp + 0x14], 0
jne 0x449658
xor ecx, ecx
mov byte [ebx + 0x301], 1
test esi, esi
je 0x44960f
mov ecx, dword [esi]
mov eax, ecx
mov word [ebx + 0x320], cx
shr eax, 0x10
mov word [ebx + 0x304], ax
cmp byte [ebx + 0x300], 0
jne 0x449637
mov al, byte [ebx + 0x301]
mov byte [ebx + 0x300], al
movzx edx, word [ebx + 0x304]
mov eax, edx
mov dword [esp + 0x20], eax
test ax, ax
je 0x44966a
movzx ecx, word [ebx + 0x34]
cwde
cmp eax, ecx
je 0x44966a
mov word [ebx + 0x34], dx
jmp 0x44966a
mov ax, word [ebx + 0x284]
mov byte [ebx + 0x301], 0
mov word [ebx + 0x34], ax
push dword [esp + 0x24]
call edi
push dword [esp + 0x28]
call edi
test esi, esi
je 0x449681
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44968c
push eax
call edi
push 0
push 1
lea ecx, [esp + 0xb8]
call fcn.00401d04
and dword [ebx + 0x98], 0
lea ecx, [esp + 0x98]
or dword [esp + 0x190], 0xffffffff
call fcn.0053f210
xor eax, eax
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret