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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ce0f
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov edi, ecx
mov esi, bind
mov dword [esp + 0x14], 1
push esi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x44f7bb
push esi
push str.SharedAccess
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x44f780
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x44f7bb
lea eax, [esp + 0xc8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44f7a4
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 ebx
call esi
cmp dword [esp + 0x14], 0
je 0x44fafa
push str.KGUPnP.exe
lea ecx, [esp + 0x84]
call fcn.00407674
xor ebx, ebx
lea eax, [esp + 0x80]
push ebx
push ebx
push eax
mov dword [esp + 0x19c], ebx
call fcn.00551b50
or dword [esp + 0x19c], 0xffffffff
lea ecx, [esp + 0x8c]
add esp, 0xc
xor esi, esi
inc esi
push ebx
push esi
call fcn.00401c9b
lea ecx, [esp + 0x98]
call fcn.0052d8b0
lea eax, [esp + 0x98]
mov dword [esp + 0x190], esi
push eax
push 2
call fcn.00550dd0
pop ecx
pop ecx
test al, al
je 0x44fae0
push str.KGUPnP.exe
lea ecx, [esp + 0x84]
call fcn.00407674
lea eax, [esp + 0x80]
mov byte [esp + 0x190], 2
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xa0]
call fcn.0052d9a0
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x194], 3
call fcn.0052d980
lea ecx, [esp + 0xc8]
mov byte [esp + 0x190], 2
call fcn.0052d8d0
push ebx
push esi
lea ecx, [esp + 0x88]
mov byte [esp + 0x198], 1
call fcn.00401c9b
push 0x40
lea eax, [esp + 0x3c]
xorps xmm0, xmm0
push ebx
push eax
movdqu xmmword [esp + 0x30], xmm0
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 [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x60], 0x81
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x20], eax
movzx eax, word [edi + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x24]
push str._s_1__d__d__d
mov dword [esp + 0x18], eax
call fcn.0043a084
lea ecx, [esp + 0x98]
mov byte [esp + 0x190], 4
push ecx
mov ecx, eax
call fcn.0043a273
lea ecx, [esp + 0x14]
mov dword [esp + 0x84], fcn.00401510
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x80]
mov ecx, eax
mov dword [esp + 0x88], 0x453ef0
call fcn.0043b200
lea ecx, [esp + 0x1c]
mov dword [esp + 0x84], fcn.00401510
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x80]
mov ecx, eax
mov dword [esp + 0x88], 0x43ba13
call fcn.0043b200
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0043a2cf
mov edx, eax
lea ecx, [esp + 0xb0]
call fcn.0043a29b
lea ecx, [esp + 0xe4]
call fcn.00438262
push str.KGUPnP_UDP_TCP_PORT
push 4
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x1c], eax
mov esi, ebx
test eax, eax
je 0x44f9d1
push 4
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x44f9d1
mov dword [esi], ebx
cmp dword [esp + 0xc4], 8
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0xcc]
cmovae ecx, dword [esp + 0xcc]
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x44fab9
push 0xea60
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44faad
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 0x44faad
cmp dword [esp + 0x14], 0
jne 0x44fa9b
xor ecx, ecx
mov byte [edi + 0x451], 1
test esi, esi
je 0x44fa52
mov ecx, dword [esi]
mov eax, ecx
mov word [edi + 0x470], cx
shr eax, 0x10
mov word [edi + 0x454], ax
cmp byte [edi + 0x450], 0
jne 0x44fa7a
mov al, byte [edi + 0x451]
mov byte [edi + 0x450], al
movzx edx, word [edi + 0x454]
mov eax, edx
mov dword [esp + 0x20], eax
test ax, ax
je 0x44faad
movzx ecx, word [edi + 0x34]
cwde
cmp eax, ecx
je 0x44faad
mov word [edi + 0x34], dx
jmp 0x44faad
mov ax, word [edi + 0x3d4]
mov byte [edi + 0x451], 0
mov word [edi + 0x34], ax
push dword [esp + 0x24]
call ebx
push dword [esp + 0x28]
call ebx
test esi, esi
je 0x44fac4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44facf
push eax
call ebx
xor ebx, ebx
lea ecx, [esp + 0xb0]
push ebx
push 1
call fcn.00401c9b
or dword [esp + 0x190], 0xffffffff
lea ecx, [esp + 0x98]
mov dword [edi + 0x1dc], ebx
call fcn.0052d8d0
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.0054e63c
mov esp, ebp
pop ebp
ret