Function at 0x3431691a
Capabilities:
Get hostname

Disassembly:
sub esp, 0x438
mov eax, dword [0x34234fcc]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x458]
push ebx
mov ebx, dword [esp + 0x448]
push ebp
mov ebp, dword [esp + 0x448]
push esi
mov esi, dword [esp + 0x454]
push edi
mov edi, dword [esp + 0x44c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0x31
cmp ebx, 0x31
ja 0x34316989
mov dword [esp + 0x20], ebx
call fcn.34311461
xor edx, edx
xor eax, eax
mov word [esp + 0x2c], dx
mov word [esp + 0x34], ax
test ebx, ebx
je 0x343169aa
test ebp, ebp
je 0x343169aa
xor ecx, ecx
mov word [ebp], cx
cmp dword [esp + 0x45c], eax
je 0x343169bc
test esi, esi
je 0x343169bc
xor edx, edx
mov word [esi], dx
mov esi, dword [esp + 0x464]
test esi, esi
je 0x343169d4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x343169d4
xor ecx, ecx
mov word [eax], cx
push edi
call fcn.3431183a
test eax, eax
je 0x34316a35
test esi, esi
jle 0x343169f4
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push edx
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
add edi, 4
push 0x5c
push edi
call dword [sym.imp.MSVCR90.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
je 0x34316bf6
push ebx
push ebp
xor eax, eax
push edi
mov word [esi], ax
call fcn.341f73a4
mov ecx, 0x5c
mov word [esi], cx
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x14], 1
jmp 0x34316bac
push edi
call fcn.343114da
test eax, eax
je 0x34316bf6
mov dx, word [edi]
mov ax, word [edi + 2]
xor ecx, ecx
mov word [esp + 0x2c], dx
mov word [esp + 0x2e], ax
mov word [esp + 0x30], cx
call fcn.343159ef
test eax, eax
je 0x34316bf6
push 3
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.34397531
test eax, eax
jne 0x34316a84
xor eax, eax
jmp 0x34316bfa
push 0x208
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.34397531
test eax, eax
je 0x34316a7d
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [0x343f8f00]
mov esi, eax
push 3
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.34397515
test eax, eax
je 0x34316a7d
push 0x104
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x244]
push eax
call fcn.34397515
test eax, eax
je 0x34316a7d
test esi, esi
jne 0x34316b5d
push 0x5c
lea ecx, [esp + 0x3c]
push ecx
call fcn.342e214a
mov esi, eax
test esi, esi
je 0x34316bf6
push ebx
push ebp
lea eax, [esp + 0x40]
xor edx, edx
push eax
mov word [esi], dx
call fcn.341f73a4
mov ebx, dword [esp + 0x10]
add edi, 4
push edi
mov edi, dword [esp + 0x468]
lea edx, [esp + 0x38]
push edx
push 0x342d97cc
push 0xffffffffffffffff
mov ecx, 0x5c
push edi
push ebx
mov word [esi], cx
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x18
test edi, edi
je 0x34316b4d
xor eax, eax
mov word [ebx + edi*2 - 2], ax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x14], 1
jmp 0x34316bb7
cmp esi, 0x4c6
ja 0x34316b79
je 0x34316b81
cmp esi, 0x1e7
je 0x34316b81
cmp esi, 0x4b3
jne 0x34316bf6
jmp 0x34316b81
cmp esi, 0x8ca
jne 0x34316bf6
lea ecx, [esp + 0x20]
push ecx
push ebp
call sub.KERNEL32.dll_GetComputerNameW
test eax, eax
je 0x34316bf6
mov edx, dword [esp + 0x45c]
mov esi, dword [esp + 0x1c]
push edx
push esi
push edi
call fcn.341f73a4
mov eax, 1
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x464]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x34316bc1
mov dword [ecx], eax
test eax, eax
je 0x34316bd6
push edi
push ebx
push esi
call fcn.3431683e
test eax, eax
jne 0x34316bf6
mov word [ebx], ax
jmp 0x34316bf6
mov edi, dword [esp + 0x45c]
push edi
push esi
push ebx
call fcn.34316647
test eax, eax
jne 0x34316bf6
test esi, esi
je 0x34316bf6
test edi, edi
je 0x34316bf6
xor ecx, ecx
mov word [esi], cx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.341f1dd1
add esp, 0x438
ret 0x20