Function at 0x4013b1
Capabilities:
Get hostname

Disassembly:
jmp 0x40af20
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470e5d
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x40af78
mov ecx, dword [esp + 0x284]
mov ebx, dword [esp + 0x288]
cmp ecx, esi
jne 0x40af7f
cmp ebx, esi
jne 0x40af7f
cmp dword [esp + 0x28c], esi
jne 0x40af7f
cmp dword [esp + 0x290], esi
jne 0x40af7f
xor eax, eax
jmp 0x40b37d
mov ebx, dword [esp + 0x288]
cmp ebx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x40af93
mov ecx, dword [ebx]
mov dword [ebx], esi
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x290]
cmp edi, esi
je 0x40afa6
mov edx, dword [edi]
mov dword [edi], esi
mov dword [esp + 0x24], edx
cmp eax, esi
je 0x40afc6
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x40b3df
cmp ebx, esi
jne 0x40afd2
cmp edi, esi
je 0x40b378
lea ecx, [esp + 0x10]
call fcn.00451a60
mov edx, dword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards]
push 0x20019
push edx
push SysFreeString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x284], esi
call fcn.00451b80
test eax, eax
je 0x40b3cb
lea ecx, [esp + 0x40]
call fcn.0041f25a
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
push esi
mov byte [esp + 0x280], 1
call fcn.004537e0
test eax, eax
lea ecx, [esp + 0x10]
jne 0x40b036
call fcn.00451bd0
jmp 0x40b3ba
call fcn.00451bd0
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call fcn.0041f25a
mov byte [esp + 0x278], 3
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6a]
mov word [esp + 0x68], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x48]
test eax, eax
mov ebp, eax
jle 0x40b131
mov bl, 4
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x68]
mov edx, dword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + esi*4]
push eax
push edx
lea eax, [esp + 0x70]
push 0x481838
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea ecx, [esp + 0x68]
push 0x20019
push ecx
push SysFreeString
lea ecx, [esp + 0x1c]
call fcn.00451b80
test eax, eax
je 0x40b121
mov edx, dword [esp + 0x1c]
mov eax, dword [str.ServiceName]
push 0
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00452020
mov edi, dword [eax]
mov byte [esp + 0x278], bl
lea ecx, [esp + 0x18]
mov byte [esp + 0x278], 3
call sub.MFC42u.DLL_CString::CString
test edi, edi
je 0x40b118
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x10]
call fcn.00451bd0
inc esi
cmp esi, ebp
jl 0x40b081
mov ebx, dword [esp + 0x288]
test ebx, ebx
je 0x40b229
mov eax, dword [esp + 0x284]
test eax, eax
je 0x40b229
mov eax, dword [esp + 0x30]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], eax
jle 0x40b22d
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x40b398
mov edx, dword [esp + 0x2c]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [edx + ebp*4]
lea ecx, [esp + 0x68]
push eax
mov eax, dword [str.SYSTEMCurrentControlSetServices_sParameters]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea edx, [esp + 0x68]
lea ecx, [esp + 0x10]
push 0x20019
push edx
push SysFreeString
call fcn.00451b80
test eax, eax
je 0x40b21c
mov eax, dword [esp + 0x1c]
mov ecx, dword [str.NetworkAddress]
push 0
push eax
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00452020
mov esi, dword [eax]
mov byte [esp + 0x278], 5
lea ecx, [esp + 0x3c]
mov byte [esp + 0x278], 3
call sub.MFC42u.DLL_CString::CString
test esi, esi
je 0x40b213
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], 0xc
jne 0x40b213
mov eax, dword [ebx]
mov edx, dword [esp + 0x284]
lea eax, [eax + eax*2]
lea eax, [edx + eax*2]
push eax
push 0xc
push ecx
call fcn.0040b530
add esp, 0xc
test eax, eax
je 0x40b213
inc dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00451bd0
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x40b15a
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x290]
test ebx, ebx
je 0x40b331
mov ecx, dword [esp + 0x28c]
test ecx, ecx
je 0x40b331
xor ebp, ebp
mov dword [esp + 0x18], eax
test eax, eax
jle 0x40b331
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x40b398
mov edx, dword [esp + 0x2c]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [edx + ebp*4]
lea ecx, [esp + 0x68]
push eax
mov eax, dword [str.SYSTEMCurrentControlSetServices_sParametersTcpip]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea edx, [esp + 0x68]
lea ecx, [esp + 0x10]
push 0x20019
push edx
push SysFreeString
call fcn.00451b80
test eax, eax
je 0x40b324
lea ecx, [esp + 0x54]
call fcn.0041f25a
mov ecx, dword [str.IPAddress]
lea eax, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 6
call fcn.00452710
test eax, eax
je 0x40b30a
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
mov edi, eax
jle 0x40b30a
mov edx, dword [esp + 0x58]
mov ecx, dword [ebx]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x28c]
lea ecx, [edx + ecx*4]
push ecx
push eax
call fcn.0040b620
add esp, 8
test eax, eax
je 0x40b305
inc dword [ebx]
inc esi
cmp esi, edi
jl 0x40b2e2
lea ecx, [esp + 0x10]
call fcn.00451bd0
lea ecx, [esp + 0x54]
mov byte [esp + 0x278], 3
call sub.MFC42u.DLL_CStringArray::CStringArray
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x40b259
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x278], 0
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call fcn.00451b00
mov eax, 1
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x26c
ret 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x278], 0
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call fcn.00451b00
xor eax, eax
jmp 0x40b37d