Function at 0x43e840
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x970
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d28a8]
movq xmm0, qword [0x4d28a0]
push ebx
push esi
push edi
mov dword [ebp - 0x908], eax
movzx eax, word [0x4d28ac]
push 0x32
mov word [ebp - 0x904], ax
lea eax, [ebp - 0x902]
push 0
push eax
mov dword [ebp - 0x970], ecx
mov dword [ebp - 0x914], 3
movq qword [ebp - 0x910], xmm0
call fcn.004a6d90
movups xmm0, xmmword [str.Start_service.]
mov eax, dword [0x4d28c8]
mov dword [ebp - 0x8b8], eax
movzx eax, word [0x4d28cc]
push 0x1e2
mov word [ebp - 0x8b4], ax
lea eax, [ebp - 0x8b2]
movups xmmword [ebp - 0x8d0], xmm0
push 0
movq xmm0, qword [0x4d28c0]
push eax
movq qword [ebp - 0x8c0], xmm0
call fcn.004a6d90
mov eax, dword [0x4d28d8]
movq xmm0, qword [str._stop]
push 0x34
mov dword [ebp - 0x6c4], eax
lea eax, [ebp - 0x6c0]
push 0
push eax
mov dword [ebp - 0x6d0], 4
movq qword [ebp - 0x6cc], xmm0
call fcn.004a6d90
movups xmm0, xmmword [str.Stop_service.]
mov eax, dword [0x4d28f4]
push 0x1e4
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x670]
movups xmmword [ebp - 0x68c], xmm0
push 0
movq xmm0, qword [0x4d28ec]
push eax
movq qword [ebp - 0x67c], xmm0
call fcn.004a6d90
movzx eax, word [0x4d2908]
movups xmm0, xmmword [str._service]
push 0x2e
mov word [ebp - 0x478], ax
lea eax, [ebp - 0x476]
push 0
push eax
mov dword [ebp - 0x48c], 5
movups xmmword [ebp - 0x488], xmm0
call fcn.004a6d90
mov ecx, 0x24
lea edi, [ebp - 0x448]
mov esi, str.Run_as_service__could_be_invoked_only_from_service_manager__DO_NOT_USE_.
lea eax, [ebp - 0x3b6]
rep movsd dword es:[edi], dword [esi]
push 0x16e
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004a6d90
movzx eax, word [0x4d29ac]
add esp, 0x48
movq xmm0, qword [str._run]
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23a]
mov dword [ebp - 0x248], 6
push 0x36
push 0
push eax
movq qword [ebp - 0x244], xmm0
call fcn.004a6d90
movups xmm0, xmmword [str.Run_as_application.]
push 0x1d8
lea eax, [ebp - 0x1dc]
movups xmmword [ebp - 0x204], xmm0
push 0
movups xmm0, xmmword [0x4d29c0]
push eax
movups xmmword [ebp - 0x1f4], xmm0
movq xmm0, qword [0x4d29d0]
movq qword [ebp - 0x1e4], xmm0
call fcn.004a6d90
push 0x48
lea eax, [ebp - 0x964]
push 0
push eax
call fcn.004a6d90
add esp, 0x24
lea ecx, [ebp - 0x964]
call fcn.00433370
lea ecx, [ebp - 0x95c]
mov dword [ebp - method.FamRT::TSmallListEx0_class_FamRT::TSmartPtr_class_FamRT::Console::IParameter___class_FamRT::CNoMTProtection_.virtual_0], vtable.FamRT::TSmallListEx0_class_FamRT::TSmartPtr_class_FamRT::Console::IParameter___class_FamRT::CNoMTProtection_.0
call fcn.00494a10
lea ecx, [ebp - 0x94c]
mov dword [ebp - 0x954], 0
mov dword [ebp - 0x960], 0x4d20b8
mov dword [ebp - method.FamRT::TSmallListEx0_class_FamRT::TSmartPtr_class_FamRT::Console::IParameter___class_FamRT::CNoMTProtection_.virtual_0], vtable.FamRT::TSmallListEx0_class_FamRT::TSmartPtr_class_FamRT::Console::IParameter___class_FamRT::CNoMTProtection_.0
call fcn.00494a10
lea ecx, [ebp - 0x93c]
mov dword [ebp - 0x944], 0
mov dword [ebp - 0x950], 0x4d20b8
mov dword [ebp - method.FamRT::TSmallListEx0_class_FamRT::TSmartPtr_class_FamRT::Console::IParameter___class_FamRT::CNoMTProtection_.virtual_0], vtable.FamRT::TSmallListEx0_class_FamRT::TSmartPtr_class_FamRT::Console::IParameter___class_FamRT::CNoMTProtection_.0
call fcn.00494a10
lea ecx, [ebp - 0x930]
mov dword [ebp - 0x934], 0
mov dword [ebp - 0x940], 0x4d20b8
call fcn.004941b0
push 0x4d88a4
push 0x14
mov dword [ebp - 0x924], 0xffffffff
mov byte [ebp - 0x920], 0
mov dword [ebp - 0x91c], 0
call fcn.004a55e9
mov ebx, eax
add esp, 8
mov dword [ebp - 0x96c], ebx
test ebx, ebx
je 0x43eb81
mov ecx, ebx
call fcn.00492860
lea edi, [ebx + 8]
mov dword [ebx], vtable.FamRT::Console::CModeHandler.0
mov ecx, edi
mov dword [ebp - 0x968], edi
call fcn.00433590
push 4
mov ecx, edi
mov dword [ebx + 0x10], 0
call fcn.00439000
lea esi, [ebp - 0x914]
xor ebx, ebx
mov dword [ebp - 0x918], esi
push ebx
mov ecx, edi
call fcn.0043db90
test eax, eax
je 0x43eb67
mov ecx, 0x91
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x918]
mov edi, dword [ebp - 0x968]
inc ebx
add esi, 0x244
mov dword [ebp - 0x918], esi
cmp ebx, 4
jb 0x43eb46
mov eax, dword [ebp - 0x96c]
jmp 0x43eb83
xor eax, eax
push eax
lea ecx, [ebp - 0x91c]
call fcn.00433310
mov edi, dword [ebp - 0x91c]
test edi, edi
jne 0x43ebee
lea ecx, [ebp - 0x91c]
call fcn.00434ec0
lea ecx, [ebp - 0x930]
call fcn.004941d0
lea ecx, [ebp - 0x940]
call fcn.00434cb0
lea ecx, [ebp - 0x950]
call fcn.00434cb0
lea ecx, [ebp - 0x960]
call fcn.00434cb0
lea ecx, [ebp - 0x964]
call fcn.00434ec0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x964]
cmp esi, edi
je 0x43ec2f
test esi, esi
je 0x43ec21
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jns 0x43ec21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x43ec1a
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x964], edi
test edi, edi
je 0x43ec2f
lock inc dword [edi + 4]
lea ecx, [ebp - 0x91c]
mov byte [ebp - 0x920], 0
call fcn.00434ec0
mov ebx, dword [ebp - 0x970]
lea ecx, [ebp - 0x964]
push ecx
mov ecx, ebx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x43eba4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x918]
mov dword [ebp - 0x918], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov eax, dword [ebp - 0x918]
test eax, eax
jle 0x43eba4
test esi, esi
je 0x43eba4
lea ecx, [esi + 4]
dec eax
push ecx
push eax
lea ecx, [ebp - 0x964]
call fcn.004487a0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x43eba4
test edi, edi
je 0x43eba4
mov esi, dword [ebp - 0x924]
lea ecx, [ebp - 0x930]
mov dword [ebx + 0x24], esi
call fcn.004941d0
lea ecx, [ebp - 0x940]
call fcn.00434cb0
lea ecx, [ebp - 0x950]
call fcn.00434cb0
lea ecx, [ebp - 0x960]
call fcn.00434cb0
lea ecx, [ebp - 0x964]
call fcn.00434ec0
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004a559d
mov esp, ebp
pop ebp
ret