Function at 0x407290
Capabilities:
Link many functions at runtime
Rebuild import table

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40729e
xor eax, eax
pop esi
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateProcessA
push eax
mov dword [esi + 8], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
push str.GetModuleFileNameA
push eax
call edi
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 8]
push str.CreateMutexA
push ecx
call edi
mov dword [esi + 0x28], eax
mov edx, dword [esi + 8]
push str.ReleaseMutex
push edx
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 8]
push str.GetLastError
push eax
call edi
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 8]
push str.CloseHandle
push ecx
call edi
mov dword [esi + 0x34], eax
mov edx, dword [esi + 8]
push str.Sleep
push edx
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 8]
push str.lstrcatA
push eax
call edi
mov dword [esi + 0x3c], eax
mov ecx, dword [esi + 8]
push str.GetTickCount
push ecx
call edi
mov dword [esi + 0x40], eax
mov edx, dword [esi + 8]
push str.WaitForSingleObject
push edx
call edi
mov dword [esi + 0x44], eax
mov eax, dword [esi + 8]
push str.GetFileAttributesA
push eax
call edi
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 8]
push str.CreateEventA
push ecx
call edi
mov dword [esi + 0x4c], eax
mov edx, dword [esi + 8]
push str.ResetEvent
push edx
call edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 8]
push str.CancelIo
push eax
call edi
mov dword [esi + 0x54], eax
mov ecx, dword [esi + 8]
push str.SetEvent
push ecx
call edi
mov dword [esi + 0x58], eax
mov edx, dword [esi + 8]
push str.TerminateThread
push edx
call edi
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 8]
push str.GetVersionExA
push eax
call edi
mov dword [esi + 0x60], eax
mov ecx, dword [esi + 8]
push str.GetExitCodeProcess
push ecx
call edi
mov dword [esi + 0x64], eax
mov edx, dword [esi + 8]
push str.ExpandEnvironmentStringsA
push edx
call edi
mov dword [esi + 0x68], eax
mov eax, dword [esi + 8]
push str.GetSystemInfo
push eax
call edi
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 8]
push str.GetSystemDirectoryA
push ecx
call edi
mov dword [esi + 0x70], eax
mov edx, dword [esi + 8]
push str.MoveFileA
push edx
call edi
mov dword [esi + 0x74], eax
mov eax, dword [esi + 8]
push str.MoveFileExA
push eax
call edi
mov dword [esi + 0x78], eax
mov ecx, dword [esi + 8]
push str.WTSGetActiveConsoleSessionId
push ecx
call edi
mov dword [esi + 0x7c], eax
mov edx, dword [esi + 8]
push str.GetCurrentProcess
push edx
call edi
push str.User32.dll
mov dword [esi + 0x80], eax
call ebx
push str.wsprintfA
push eax
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0xc]
push str.ExitWindowsEx
push eax
call edi
mov dword [esi + 0x88], eax
mov ecx, dword [esi + 0xc]
push str.MessageBoxA
push ecx
call edi
mov dword [esi + 0x8c], eax
mov edx, dword [esi + 0xc]
push str.IsWindowVisible
push edx
call edi
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0xc]
push str.SendMessageA
push eax
call edi
mov dword [esi + 0x94], eax
mov ecx, dword [esi + 0xc]
push str.EnumWindows
push ecx
call edi
push str.MSVCRT.dll
mov dword [esi + 0x98], eax
call ebx
push str.strcmp
push eax
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0xd8], eax
mov edx, dword [esi + 0x18]
push str.strlen
push edx
call edi
mov dword [esi + 0xdc], eax
mov eax, dword [esi + 0x18]
push str.memcpy
push eax
call edi
mov dword [esi + 0xe0], eax
mov ecx, dword [esi + 0x18]
push str.memset
push ecx
call edi
mov dword [esi + 0xe4], eax
mov edx, dword [esi + 0x18]
push str.strstr
push edx
call edi
push str.ws2_32.dll
mov dword [esi + 0xe8], eax
call ebx
push str.WSAStartup
push eax
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xec], eax
mov eax, dword [esi + 0x14]
push str.WSACleanup
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.socket
push ecx
mov dword [esi + 0xf0], eax
call edi
mov edx, dword [esi + 0x14]
push str.gethostbyname
push edx
mov dword [esi + 0xf4], eax
call edi
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x14]
push str.htons
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.connect
push ecx
mov dword [esi + 0xfc], eax
call edi
mov edx, dword [esi + 0x14]
push str.send
push edx
mov dword [esi + 0x100], eax
call edi
mov dword [esi + 0x104], eax
mov eax, dword [esi + 0x14]
push str.recv
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.closesocket
push ecx
mov dword [esi + 0x108], eax
call edi
mov edx, dword [esi + 0x14]
push str.setsockopt
push edx
mov dword [esi + 0x10c], eax
call edi
mov dword [esi + 0x110], eax
push str.WSAIoctl
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.select
push ecx
mov dword [esi + 0x114], eax
call edi
mov edx, dword [esi + 0x14]
push str.getsockname
push edx
mov dword [esi + 0x118], eax
call edi
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0x14]
push str.gethostname
push eax
call edi
push str.ADVAPI32.dll
mov dword [esi + 0x120], eax
call ebx
push str.SetServiceStatus
push eax
mov dword [esi + 0x10], eax
call edi
mov ecx, dword [esi + 0x10]
push str.RegisterServiceCtrlHandlerA
push ecx
mov dword [esi + 0x9c], eax
call edi
mov edx, dword [esi + 0x10]
push str.OpenSCManagerA
push edx
mov dword [esi + 0xa0], eax
call edi
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0x10]
push str.OpenServiceA
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.StartServiceA
push ecx
mov dword [esi + 0xa8], eax
call edi
mov edx, dword [esi + 0x10]
push str.CloseServiceHandle
push edx
mov dword [esi + 0xac], eax
call edi
mov dword [esi + 0xb0], eax
mov eax, dword [esi + 0x10]
push str.QueryServiceStatus
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.ControlService
push ecx
mov dword [esi + 0xb4], eax
call edi
mov edx, dword [esi + 0x10]
push str.CreateServiceA
push edx
mov dword [esi + 0xb8], eax
call edi
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x10]
push str.ChangeServiceConfig2A
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.DeleteService
push ecx
mov dword [esi + 0xc0], eax
call edi
mov edx, dword [esi + 0x10]
push str.OpenProcessToken
push edx
mov dword [esi + 0xc4], eax
call edi
mov dword [esi + 0xc8], eax
mov eax, dword [esi + 0x10]
push str.DuplicateTokenEx
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.SetTokenInformation
push ecx
mov dword [esi + 0xcc], eax
call edi
mov edx, dword [esi + 0x10]
push str.CreateProcessAsUserA
push edx
mov dword [esi + 0xd0], eax
call edi
push str.wininet.dll
mov dword [esi + 0xd4], eax
call ebx
mov dword [esi + 0x1c], eax
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop ebx
pop esi
ret