Function at 0x342de894
Capabilities:
Get hostname

Disassembly:
sub esp, 0x43c
mov eax, dword [0x342226fc]
xor eax, esp
mov dword [esp + 0x438], eax
mov eax, dword [esp + 0x44c]
mov ecx, dword [esp + 0x45c]
push ebx
mov ebx, dword [esp + 0x458]
push ebp
mov ebp, dword [esp + 0x450]
cmp ebp, 0x31
push esi
mov esi, dword [esp + 0x44c]
push edi
mov edi, dword [esp + 0x454]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0x31
ja 0x342de907
mov dword [esp + 0x20], ebp
call fcn.342d9214
xor ecx, ecx
cmp ebp, ecx
mov word [esp + 0x30], cx
mov word [esp + 0x38], cx
je 0x342de923
cmp edi, ecx
je 0x342de923
mov word [edi], cx
cmp dword [esp + 0x460], ecx
je 0x342de937
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x342de937
mov word [eax], cx
mov edi, dword [esp + 0x468]
cmp edi, ecx
je 0x342de949
cmp ebx, ecx
je 0x342de949
mov word [ebx], cx
push esi
call fcn.342d9618
test eax, eax
je 0x342de9a1
push edi
push ebx
mov ebx, dword [sym.imp.MSO.dll_Ordinal_6877]
push esi
call ebx
lea edi, [esi + 4]
push 0x5c
push edi
call dword [sym.imp.msvcr80.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
je 0x342deb5a
mov edx, dword [esp + 0x1c]
push ebp
push edx
push edi
mov word [esi], 0
call ebx
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov word [esi], 0x5c
xor eax, eax
mov dword [esp + 0x10], 1
jmp 0x342deb16
push esi
call fcn.342d929d
test eax, eax
je 0x342deb5a
mov ax, word [esi]
mov cx, word [esi + 2]
mov word [esp + 0x30], ax
mov word [esp + 0x32], cx
mov word [esp + 0x34], 0
call fcn.342dd954
test eax, eax
je 0x342deb5a
push 3
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.3434474f
test eax, eax
jne 0x342de9f0
xor eax, eax
jmp 0x342deb5e
push 0x208
lea ecx, [esp + 0x244]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.3434474f
test eax, eax
je 0x342de9e9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x244]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [0x3438eb4c]
mov edi, eax
push 3
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.34344731
test eax, eax
je 0x342de9e9
push 0x104
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x248]
push eax
call fcn.34344731
test eax, eax
je 0x342de9e9
test edi, edi
jne 0x342deac2
push 0x5c
lea ecx, [esp + 0x40]
push ecx
call fcn.342cbc74
mov edi, eax
test edi, edi
je 0x342deb5a
mov edx, dword [esp + 0x1c]
push ebp
push edx
lea eax, [esp + 0x44]
push eax
mov word [edi], 0
call dword [sym.imp.MSO.dll_Ordinal_6877]
add esi, 4
push esi
mov esi, dword [esp + 0x46c]
lea ecx, [esp + 0x3c]
push ecx
push 0x342c5770
push esi
push ebx
mov word [edi], 0x5c
call fcn.342d38b8
xor eax, eax
add esp, 0x14
cmp esi, eax
je 0x342deab4
mov word [ebx + esi*2 - 2], ax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 1
jmp 0x342deb1d
cmp edi, 0x4c6
ja 0x342deade
je 0x342deae6
cmp edi, 0x1e7
je 0x342deae6
cmp edi, 0x4b3
jne 0x342deb5a
jmp 0x342deae6
cmp edi, 0x8ca
jne 0x342deb5a
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x342deb5a
mov ecx, dword [esp + 0x460]
mov edi, dword [esp + 0x14]
push ecx
push edi
push esi
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov eax, 1
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x468]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x342deb27
mov dword [ecx], eax
test eax, eax
je 0x342deb3c
push esi
push ebx
push edi
call fcn.342de79e
test eax, eax
jne 0x342deb5a
mov word [ebx], ax
jmp 0x342deb5a
mov esi, dword [esp + 0x460]
push esi
push edi
push ebx
call fcn.342de2ab
test eax, eax
jne 0x342deb5a
test edi, edi
je 0x342deb5a
test esi, esi
je 0x342deb5a
mov word [edi], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.341f1b18
add esp, 0x43c
ret 0x20