Function at 0x403900
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push esi
push edi
mov edi, str.sleep
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll__strnicmp]
not ecx
dec ecx
mov dword [ebp - 0x10], esp
push ecx
push str.sleep
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4039e4
push 0x20
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x403998
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jle 0x403cdd
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
call fcn.00416594
push esi
lea ecx, [ebp + 8]
push str.invalid__sleep__command
push ecx
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp + 8]
push edx
call fcn.00401180
add esp, 0x10
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, str.kill
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.kill
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x403ac8
push 0x20
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x403a7c
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [ebp - 0x18]
call fcn.00405d40
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00405e10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00405d70
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
call fcn.00416594
push esi
lea edx, [ebp + 8]
push str.invalid__kill__command
push edx
mov dword [ebp - 4], 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 8]
push eax
call fcn.00401180
add esp, 0x10
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.restart
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x403b13
lea ecx, [ebp + 8]
call fcn.00405d40
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.00405d80
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00405d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, str.xmlset
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.xmlset
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x403cd3
xor ebx, ebx
push 0x20
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x403c87
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x327]
mov byte [ebp - 0x328], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x227]
mov byte [ebp - 0x228], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 5
stosb byte es:[edi], al
push ecx
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x328]
push eax
push ecx
push str._s__s__s
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x14
cmp eax, 2
jl 0x403c7c
lea edx, [ebp - 0x328]
lea ecx, [ebp - 0x28]
push edx
call fcn.00406030
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00406820
cmp eax, 1
jne 0x403c62
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x128]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406280
mov ebx, eax
cmp ebx, 1
mov dword [ebp - 0x18], ebx
jne 0x403c17
lea ecx, [ebp - 0x28]
call fcn.00406930
jmp 0x403c5a
lea ecx, [ebp - 0x14]
call fcn.00416594
lea edx, [ebp - 0x228]
lea eax, [ebp - 0x128]
push edx
push eax
lea ecx, [ebp - 0x14]
push str.xmlset__s___s__command_failed__
push ecx
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
call fcn.00401180
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
call fcn.00407c80
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004060c0
jmp 0x403c7c
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
jne 0x403cdd
lea ecx, [ebp - 0x14]
call fcn.00416594
push esi
lea eax, [ebp - 0x14]
push str.invalid__xmlset__command
push eax
mov dword [ebp - 4], 9
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401180
add esp, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.MSVCRT.dll_system]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4