Function at 0x4013bb
Capabilities:
Get hostname

Disassembly:
jmp 0x408f70
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467d7d
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 0x408fc8
mov ecx, dword [esp + 0x284]
mov ebx, dword [esp + 0x288]
cmp ecx, esi
jne 0x408fcf
cmp ebx, esi
jne 0x408fcf
cmp dword [esp + 0x28c], esi
jne 0x408fcf
cmp dword [esp + 0x290], esi
jne 0x408fcf
xor eax, eax
jmp 0x4093cd
mov ebx, dword [esp + 0x288]
cmp ebx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x408fe3
mov ecx, dword [ebx]
mov dword [ebx], esi
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x290]
cmp edi, esi
je 0x408ff6
mov edx, dword [edi]
mov dword [edi], esi
mov dword [esp + 0x24], edx
cmp eax, esi
je 0x409016
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x40942f
cmp ebx, esi
jne 0x409022
cmp edi, esi
je 0x4093c8
lea ecx, [esp + 0x10]
call fcn.0043b580
mov edx, dword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards]
push 0x20019
push edx
push SysFreeString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x284], esi
call fcn.0043b6a0
test eax, eax
je 0x40941b
lea ecx, [esp + 0x40]
call fcn.0041c1b4
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
push esi
mov byte [esp + 0x280], 1
call fcn.0043d330
test eax, eax
lea ecx, [esp + 0x10]
jne 0x409086
call fcn.0043b6f0
jmp 0x40940a
call fcn.0043b6f0
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 2
call fcn.0041c1b4
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 0x409181
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 0x476784
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.0043b6a0
test eax, eax
je 0x409171
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.0043bb40
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 0x409168
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.0043b6f0
inc esi
cmp esi, ebp
jl 0x4090d1
mov ebx, dword [esp + 0x288]
test ebx, ebx
je 0x409279
mov eax, dword [esp + 0x284]
test eax, eax
je 0x409279
mov eax, dword [esp + 0x30]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], eax
jle 0x40927d
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x4093e8
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.0043b6a0
test eax, eax
je 0x40926c
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.0043bb40
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 0x409263
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], 0xc
jne 0x409263
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.00409580
add esp, 0xc
test eax, eax
je 0x409263
inc dword [ebx]
lea ecx, [esp + 0x10]
call fcn.0043b6f0
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x4091aa
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x290]
test ebx, ebx
je 0x409381
mov ecx, dword [esp + 0x28c]
test ecx, ecx
je 0x409381
xor ebp, ebp
mov dword [esp + 0x18], eax
test eax, eax
jle 0x409381
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x4093e8
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.0043b6a0
test eax, eax
je 0x409374
lea ecx, [esp + 0x54]
call fcn.0041c1b4
mov ecx, dword [str.IPAddress]
lea eax, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 6
call fcn.0043c230
test eax, eax
je 0x40935a
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
mov edi, eax
jle 0x40935a
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.00409670
add esp, 8
test eax, eax
je 0x409355
inc dword [ebx]
inc esi
cmp esi, edi
jl 0x409332
lea ecx, [esp + 0x10]
call fcn.0043b6f0
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 0x4092a9
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.0043b620
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.0043b620
xor eax, eax
jmp 0x4093cd