Function at 0x4013ca
Capabilities:
Get hostname

Disassembly:
jmp 0x408b30
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449e3d
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 0x408b88
mov ecx, dword [esp + 0x284]
mov ebx, dword [esp + 0x288]
cmp ecx, esi
jne 0x408b8f
cmp ebx, esi
jne 0x408b8f
cmp dword [esp + 0x28c], esi
jne 0x408b8f
cmp dword [esp + 0x290], esi
jne 0x408b8f
xor eax, eax
jmp 0x408f8d
mov ebx, dword [esp + 0x288]
cmp ebx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x408ba3
mov ecx, dword [ebx]
mov dword [ebx], esi
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x290]
cmp edi, esi
je 0x408bb6
mov edx, dword [edi]
mov dword [edi], esi
mov dword [esp + 0x24], edx
cmp eax, esi
je 0x408bd6
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x408fef
cmp ebx, esi
jne 0x408be2
cmp edi, esi
je 0x408f88
lea ecx, [esp + 0x10]
call fcn.00436750
mov edx, dword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards]
push 0x20019
push edx
push SysFreeString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x284], esi
call fcn.00436870
test eax, eax
je 0x408fdb
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.004384c0
test eax, eax
lea ecx, [esp + 0x10]
jne 0x408c46
call fcn.004368c0
jmp 0x408fca
call fcn.004368c0
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call sub.MFC42u.DLL_CStringArray::CStringArray
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 0x408d41
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 0x4566ec
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.00436870
test eax, eax
je 0x408d31
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.00436cf0
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 0x408d28
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.004368c0
inc esi
cmp esi, ebp
jl 0x408c91
mov ebx, dword [esp + 0x288]
test ebx, ebx
je 0x408e39
mov eax, dword [esp + 0x284]
test eax, eax
je 0x408e39
mov eax, dword [esp + 0x30]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], eax
jle 0x408e3d
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x408fa8
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.00436870
test eax, eax
je 0x408e2c
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.00436cf0
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 0x408e23
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], 0xc
jne 0x408e23
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.00409140
add esp, 0xc
test eax, eax
je 0x408e23
inc dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004368c0
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x408d6a
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x290]
test ebx, ebx
je 0x408f41
mov ecx, dword [esp + 0x28c]
test ecx, ecx
je 0x408f41
xor ebp, ebp
mov dword [esp + 0x18], eax
test eax, eax
jle 0x408f41
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x408fa8
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.00436870
test eax, eax
je 0x408f34
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], 6
call fcn.004373e0
test eax, eax
je 0x408f1a
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
mov edi, eax
jle 0x408f1a
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.00409230
add esp, 8
test eax, eax
je 0x408f15
inc dword [ebx]
inc esi
cmp esi, edi
jl 0x408ef2
lea ecx, [esp + 0x10]
call fcn.004368c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x278], 3
call fcn.0041bd6e
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x408e69
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call fcn.0041bd6e
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.0041bd6e
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call fcn.004367f0
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.0041bd6e
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.0041bd6e
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call fcn.004367f0
xor eax, eax
jmp 0x408f8d