Function at 0x4a6aac40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x28c], eax
xor eax, eax
push ebp
push 0x4a6aae57
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
xor ebx, ebx
jmp 0x4a6aae2c
cmp dword [ebp + ebx*4 - 0x14], 0
jne 0x4a6aacaf
cmp dword [ebp + ebx*4 - 0x10], 1
je 0x4a6aacbd
cmp dword [ebp + ebx*4 - 0x14], 1
jne 0x4a6aace3
cmp dword [ebp + ebx*4 - 0x10], 0
jne 0x4a6aace3
mov eax, dword [ebp + ebx*4 - 0x20]
cmp eax, dword [ebp + ebx*4 - 0x24]
jle 0x4a6aaccf
mov eax, dword [ebp + ebx*4 - 0x20]
mov dword [ebp + ebx*4 - 0x24], eax
mov eax, dword [ebp + ebx*4 - 0x24]
push eax
push 0xffffffffffffffff
call sym.madHcNet.dll_madVR_BlindConnect
mov esi, eax
inc ebx
jmp 0x4a6aae2b
mov edi, dword [ebp + ebx*4 - 0x14]
test edi, edi
je 0x4a6aacf0
cmp edi, 1
jne 0x4a6aad0a
mov eax, dword [ebp + ebx*4 - 0x24]
push eax
dec edi
sete al
neg al
sbb eax, eax
push eax
call sym.madHcNet.dll_madVR_BlindConnect
mov esi, eax
jmp 0x4a6aae2b
cmp edi, 2
jne 0x4a6aade7
push 0x104
lea eax, [ebp - 0x22e]
push eax
mov eax, dword [0x4a6d1c4c]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x274]
xor ecx, ecx
mov edx, 0x44
call fcn.4a605184
mov dword [ebp - 0x274], 0x44
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28c]
lea edx, [ebp - 0x22e]
mov ecx, 0x105
call fcn.4a6082f8
mov eax, dword [ebp - 0x28c]
lea edx, [ebp - 0x288]
call fcn.4a612278
lea eax, [ebp - 0x288]
mov edx, 0x4a6aae78
call fcn.4a6083e4
mov eax, dword [ebp - 0x288]
call fcn.4a60824c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4a6aae2b
mov eax, dword [ebp + ebx*4 - 0x24]
push eax
mov eax, dword [ebp - 0x284]
push eax
call sub.user32.dll_WaitForInputIdle
mov eax, dword [ebp - 0x284]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x280]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp + ebx*4 - 0x24]
push eax
push 0
call sym.madHcNet.dll_madVR_BlindConnect
mov esi, eax
jmp 0x4a6aae2b
cmp edi, 3
jne 0x4a6aadfb
mov eax, dword [ebp + 0x28]
push eax
push 0xffffffffffffffff
call sym.madHcNet.dll_madVR_ConnectDialog
mov esi, eax
jmp 0x4a6aae2b
cmp edi, 4
jne 0x4a6aae39
mov edx, 0x4a6aae90
mov eax, dword [ebp + 0x28]
call fcn.4a6a848c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a6aae2b
mov eax, dword [ebp + ebx*4 - 0x24]
push eax
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
push eax
call sym.madHcNet.dll_madVR_ConnectToIp
mov esi, eax
inc ebx
cmp ebx, 4
jge 0x4a6aae39
test esi, esi
je 0x4a6aaca1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6aae5e
lea eax, [ebp - 0x28c]
mov edx, 2
call fcn.4a6075e8
ret