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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56af95
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
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 0x44a007
push esi
push str.SharedAccess
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x449fcc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x44a007
lea eax, [esp + 0xc8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x449ff0
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 0x44a351
mov edi, str.KGUPnP.exe
lea ecx, [esp + 0x80]
push edi
call fcn.004077bf
xor eax, eax
push eax
push eax
mov dword [esp + 0x198], eax
lea eax, [esp + 0x88]
push eax
call fcn.0055fee0
or dword [esp + 0x19c], 0xffffffff
lea ecx, [esp + 0x8c]
add esp, 0xc
xor esi, esi
inc esi
push 0
push esi
call fcn.00401d84
lea ecx, [esp + 0x98]
call fcn.0053ccc0
lea eax, [esp + 0x98]
mov dword [esp + 0x190], esi
push eax
push 2
call fcn.0055f020
pop ecx
pop ecx
test al, al
je 0x44a336
push edi
lea ecx, [esp + 0x84]
call fcn.004077bf
lea eax, [esp + 0x80]
mov byte [esp + 0x190], 2
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xa0]
call fcn.0053cdb0
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x194], 3
call fcn.0053cd90
lea ecx, [esp + 0xc8]
mov byte [esp + 0x190], 2
call fcn.0053cce0
push 0
push esi
lea ecx, [esp + 0x88]
mov byte [esp + 0x198], 1
call fcn.00401d84
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.0043cc7d
lea ecx, [esp + 0x98]
mov byte [esp + 0x190], 4
push ecx
mov ecx, eax
call fcn.0043ce6c
lea ecx, [esp + 0x14]
mov dword [esp + 0x84], fcn.00401600
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x80]
mov ecx, eax
mov dword [esp + 0x88], 0x45060f
call fcn.0043ddf9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x84], fcn.00401600
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x80]
mov ecx, eax
mov dword [esp + 0x88], 0x43e60c
call fcn.0043ddf9
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0043cec8
mov edx, eax
lea ecx, [esp + 0xb0]
call fcn.0043ce94
lea ecx, [esp + 0xe4]
call fcn.0043ae57
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 0x44a228
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 0x44a228
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 0x44a310
push 0xea60
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44a304
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 0x44a304
cmp dword [esp + 0x14], 0
jne 0x44a2f2
xor ecx, ecx
mov byte [ebx + 0x301], 1
test esi, esi
je 0x44a2a9
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 0x44a2d1
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 0x44a304
movzx ecx, word [ebx + 0x34]
cwde
cmp eax, ecx
je 0x44a304
mov word [ebx + 0x34], dx
jmp 0x44a304
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 0x44a31b
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44a326
push eax
call edi
push 0
push 1
lea ecx, [esp + 0xb8]
call fcn.00401d84
and dword [ebx + 0x98], 0
lea ecx, [esp + 0x98]
or dword [esp + 0x190], 0xffffffff
call fcn.0053cce0
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.0055daac
mov esp, ebp
pop ebp
ret