Function at 0x403810
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e09db
mov eax, dword fs:[0]
push eax
mov eax, 0x2c80
call fcn.004ad6f0
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c8c], ecx
cmp dword [ebp + 8], 0
jne 0x403852
xor eax, eax
jmp 0x403b2a
mov dword [ebp - 0x2a58], 0
mov ax, word [0x4ea500]
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004ad2c0
add esp, 0xc
mov dx, word [0x4ea504]
mov word [ebp - 0x2a54], dx
push 0x206
push 0
lea eax, [ebp - 0x2a52]
push eax
call fcn.004ad2c0
add esp, 0xc
mov word [ebp - 0x284c], 0
push 0x206
push 0
lea ecx, [ebp - 0x284a]
push ecx
call fcn.004ad2c0
add esp, 0xc
push 0x2424
push 0
lea edx, [ebp - 0x2644]
push edx
call fcn.004ad2c0
add esp, 0xc
lea eax, [ebp - 0x284c]
push eax
push 2
call fcn.00428a40
push 0x4ea508
lea ecx, [ebp - 0x2644]
push ecx
call fcn.004ad71b
add esp, 8
test eax, eax
je 0x40394a
push 0x4ea50c
lea edx, [ebp - 0x2644]
push edx
push 0x4ea52c
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.00401cd0
add esp, 0x14
push 0x4ea538
lea ecx, [ebp - 0x2644]
push ecx
push 0x4ea558
push 0x104
lea edx, [ebp - 0x2a54]
push edx
call fcn.00401cd0
add esp, 0x14
jmp 0x403990
push 0x4ea564
push 0x4ea588
push 0x4ea5c8
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.00401cd0
add esp, 0x14
push 0x4ea5d4
push 0x4ea5f8
push 0x4ea638
push 0x104
lea ecx, [ebp - 0x2a54]
push ecx
call fcn.00401cd0
add esp, 0x14
mov ecx, dword [ebp - 0x2c8c]
call fcn.00403650
test eax, eax
je 0x4039ee
lea ecx, [ebp - 0x2c74]
call fcn.00405dc0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
push 1
lea ecx, [ebp - 0x2c74]
call fcn.00406320
test eax, eax
je 0x4039d7
mov dword [ebp - 0x2a58], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c74]
call fcn.00405eb0
jmp 0x403b24
mov dword [ebp - 0x2c7c], 0
mov dword [ebp - 0x2c78], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c7c], eax
cmp dword [ebp - 0x2c7c], 0
je 0x403b24
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 3
push 0x110
push 0xf01ff
lea edx, [ebp - 0x21c]
push edx
push 0x4ea644
mov eax, dword [ebp - 0x2c7c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x2c78], eax
cmp dword [ebp - 0x2c78], 0
je 0x403b0d
mov ecx, dword [ebp - 0x2c8c]
call fcn.004036c0
test eax, eax
je 0x403aec
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2c80], eax
cmp dword [ebp - 0x2c80], 0
je 0x403aec
push 0x4ea684
mov ecx, dword [ebp - 0x2c80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c84], eax
cmp dword [ebp - 0x2c84], 0
je 0x403ad5
lea edx, [ebp - 0x2a54]
mov dword [ebp - 0x2c88], edx
lea eax, [ebp - 0x2c88]
push eax
push 1
mov ecx, dword [ebp - 0x2c78]
push ecx
call dword [ebp - 0x2c84]
mov edx, dword [ebp - 0x2c80]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x2c80], 0
mov eax, dword [ebp - 0x2c78]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x2c78], 0
mov dword [ebp - 0x2a58], 1
mov ecx, dword [ebp - 0x2c7c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x2c7c], 0
mov eax, dword [ebp - 0x2a58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret 4