Function at 0x401f20
Capabilities:
Create process on windows
Get common file path
Query environment variable
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x41a3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push ebp
push esi
mov dword [esp + 0x2c], ecx
push edi
push 0x80000002
lea ecx, [esp + 0x4c]
call fcn.004033d0
mov eax, dword [0x421870]
mov dword [esp + 0x25c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x25c], 2
call fcn.00410423
lea ecx, [esp + 0x34]
mov byte [esp + 0x25c], 3
call fcn.00415629
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
push str.Databasepath
push str.SYSTEMCurrentControlSetServicesTcpipParameters
mov byte [esp + 0x268], 4
xor ebx, ebx
call fcn.004038b0
test eax, eax
jne 0x401fd5
lea ecx, [esp + 0x150]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x150]
lea ecx, [esp + 0x14]
push edx
call fcn.00415153
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x150]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 0x150]
lea ecx, [esp + 0x14]
push edx
call fcn.00415153
push str.HOSTS
lea ecx, [esp + 0x18]
call fcn.00415340
mov eax, dword [esp + 0x14]
push 0
push 0x3002
push eax
lea ecx, [esp + 0x40]
call fcn.0041569e
test eax, eax
je 0x4020b4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call fcn.00415881
test eax, eax
je 0x4020ab
lea ecx, [esp + 0x18]
call fcn.00415451
push str.servserv
lea ecx, [esp + 0x1c]
call fcn.0040fc86
cmp eax, 0xffffffff
je 0x40205e
mov ebx, 1
jmp 0x402099
push str.server.fsgs.net
lea ecx, [esp + 0x1c]
call fcn.0040fc86
cmp eax, 0xffffffff
je 0x402078
mov ebx, 1
jmp 0x402099
push 0x4212f4
lea ecx, [esp + 0x1c]
call fcn.00415340
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0041062b
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call fcn.00415881
test eax, eax
jne 0x40203b
lea ecx, [esp + 0x34]
call fcn.004159ce
mov eax, dword [esp + 0x264]
test eax, eax
jne 0x402165
mov eax, dword [esp + 0x268]
test eax, eax
jne 0x402174
mov edx, dword [0x421870]
mov dword [esp + 0x10], edx
mov ebp, str.server.fsgs.net
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x25c], 5
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x402129
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_inet_ntoa
mov ebp, eax
push ebp
lea edx, [esp + 0x14]
push str._s_servserv.westwood.com_apiregister.westwood.com_n
push edx
call fcn.0040ffc7
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0041062b
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 4
call fcn.00415016
jmp 0x402239
mov ecx, dword [esp + 0x268]
test ecx, ecx
je 0x40221e
mov edx, dword [0x421870]
mov dword [esp + 0x10], edx
mov ebp, dword [esp + 0x26c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x25c], 6
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, byte [esp + 0x50]
push ecx
call fcn.004046b4
add esp, 4
cmp eax, 0x61
jl 0x4021e0
lea edx, [esp + 0x50]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4021e0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
mov ebp, eax
push ebp
lea eax, [esp + 0x14]
push str._s_servserv.westwood.com_apiregister.westwood.com_n
push eax
call fcn.0040ffc7
mov edx, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0041062b
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 4
call fcn.00415016
mov eax, dword [esp + 0x264]
test eax, eax
je 0x402226
test ebx, ebx
jne 0x402239
mov ecx, dword [esp + 0x268]
test ecx, ecx
je 0x402235
test ebx, ebx
jne 0x402239
test eax, eax
jne 0x4022a3
mov eax, dword [esp + 0x14]
push 0
push 0x1002
push eax
lea ecx, [esp + 0x40]
call fcn.0041569e
test eax, eax
je 0x4022a3
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x40229a
mov bl, 7
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.00402330
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x260], bl
call fcn.00415811
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 4
call fcn.00415016
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x40225e
lea ecx, [esp + 0x34]
call fcn.004159ce
mov edx, dword [esp + 0x30]
push 1
mov eax, dword [edx + 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0x34]
mov byte [esp + 0x25c], 3
call fcn.0041565b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x25c], 2
call fcn.00410456
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call fcn.00415016
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0
call fcn.00415016
lea ecx, [esp + 0x48]
mov dword [esp + 0x25c], 0xffffffff
call fcn.00403410
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret 0xc