Function at 0x4013c0
Capabilities:
Get hostname

Disassembly:
jmp 0x407e50
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447b37
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x260
push ebx
mov ebx, dword [esp + 0x27c]
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
jne 0x407ea8
cmp dword [esp + 0x284], esi
jne 0x407ea8
cmp ebx, esi
jne 0x407ea8
cmp dword [esp + 0x28c], esi
jne 0x407ea8
mov edi, dword [esp + 0x290]
cmp edi, esi
jne 0x407eaf
xor eax, eax
jmp 0x40827e
mov edi, dword [esp + 0x290]
cmp ebx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x407ec3
mov ecx, dword [ebx]
mov dword [ebx], esi
mov dword [esp + 0x20], ecx
cmp edi, esi
je 0x407ecf
mov edx, dword [edi]
mov dword [edi], esi
mov dword [esp + 0x24], edx
cmp eax, esi
je 0x407eef
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4082e0
cmp ebx, esi
jne 0x407efb
cmp edi, esi
je 0x408279
lea ecx, [esp + 0x10]
call fcn.00434910
mov edx, dword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards]
push 0x20019
push edx
push SysFreeString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x284], esi
call fcn.00434a10
test eax, eax
je 0x4082cc
lea ecx, [esp + 0x40]
call sub.MFC42u.DLL_CStringArray::CStringArray
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
push esi
mov byte [esp + 0x280], 1
call fcn.00436660
test eax, eax
lea ecx, [esp + 0x10]
jne 0x407f5f
call fcn.00434a60
jmp 0x4082bb
call fcn.00434a60
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call sub.MFC42u.DLL_CStringArray::CStringArray
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]
mov byte [esp + 0x278], 3
test eax, eax
mov ebp, eax
jle 0x408042
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 0x4536ac
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.00434a10
test eax, eax
je 0x408039
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.00434e90
mov edi, dword [eax]
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString
test edi, edi
je 0x408030
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.00434a60
inc esi
cmp esi, ebp
jl 0x407fa8
test ebx, ebx
je 0x40812a
mov eax, dword [esp + 0x284]
test eax, eax
je 0x40812a
mov eax, dword [esp + 0x30]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], eax
jle 0x40812e
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x408299
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.00434a10
test eax, eax
je 0x40811d
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.00434e90
mov esi, dword [eax]
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString
test esi, esi
je 0x408114
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], 0xc
jne 0x408114
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.00408420
add esp, 0xc
test eax, eax
je 0x408114
inc dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00434a60
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x40806b
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x290]
test ebx, ebx
je 0x408232
mov ecx, dword [esp + 0x28c]
test ecx, ecx
je 0x408232
xor ebp, ebp
mov dword [esp + 0x18], eax
test eax, eax
jle 0x408232
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x408299
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.00434a10
test eax, eax
je 0x408225
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CStringArray::CStringArray
mov ecx, dword [str.IPAddress]
lea eax, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 4
call fcn.00435580
test eax, eax
je 0x40820b
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
mov edi, eax
jle 0x40820b
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.00408510
add esp, 8
test eax, eax
je 0x408206
inc dword [ebx]
inc esi
cmp esi, edi
jl 0x4081e3
lea ecx, [esp + 0x10]
call fcn.00434a60
lea ecx, [esp + 0x54]
mov byte [esp + 0x278], 3
call fcn.00419f38
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x40815a
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call fcn.00419f38
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 fcn.00419f38
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call fcn.00434990
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 fcn.00419f38
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 fcn.00419f38
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call fcn.00434990
xor eax, eax
jmp 0x40827e