Function at 0x46e3c0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b3a92
push eax
mov eax, 0x3b90
mov dword fs:[0], esp
call fcn.004382c0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0xe46
xor eax, eax
lea edi, [esp + 0x288]
mov ebx, dword [esp + 0x3bb0]
mov dword [esp + 0x284], ebp
mov esi, dword [esp + 0x3bb4]
mov word [esp + 0x7c], bp
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0x7e]
rep stosd dword es:[edi], eax
mov dword [ebx], ebp
mov dword [esi], ebp
stosw word es:[edi], ax
mov eax, dword [0x4e29e0]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x3ba8], ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x7c]
push 0x103
push eax
push ebp
mov byte [esp + 0x3bb4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46e751
mov ecx, dword [0x4bc794]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x3bac], 2
call fcn.00447e90
push esi
lea eax, [esp + 0x288]
push ebx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0046eae0
add esp, 0x10
test eax, eax
je 0x46e527
push esi
lea edx, [esp + 0x288]
push ebx
push edx
mov dword [esp + 0x28], 1
call fcn.0046f9b0
add esp, 0xc
test eax, eax
je 0x46e527
lea eax, [esp + 0x20]
push eax
call fcn.004a13ff
mov dword [ebx], ebp
push ebp
lea ecx, [esp + 0x24]
mov dword [esi], ebp
call fcn.004a1412
mov edi, dword [eax + 0x14]
push ebp
lea ecx, [esp + 0x24]
add edi, 0x76c
call fcn.004a1412
mov ebp, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x24]
inc ebp
call fcn.004a1412
lea ecx, [edi + edi*4]
mov eax, dword [eax + 0xc]
lea ecx, [ecx + ecx*4]
lea ecx, [ebp + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x2cc]
lea eax, [eax + edx*4]
cmp eax, ecx
jbe 0x46e5b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov dword [esi], 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x3ba8], 1
call fcn.00447cd0
mov eax, dword [esi]
lea ecx, [esp + 0x284]
push eax
push ecx
call fcn.0046fb00
mov edx, dword [0x4bc794]
add esp, 8
mov dword [esp + 0x24], edx
mov edi, dword [esp + 0x28]
mov bl, 3
test edi, edi
mov byte [esp + 0x3ba8], bl
jne 0x46e82e
cmp dword [0x4fa558], 1
je 0x46e82e
cmp dword [esi], 0x1d
je 0x46e82e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46e82e
lea eax, [esp + 0xd88]
lea ecx, [esp + 0x24]
push eax
call fcn.00447e90
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46e764
push eax
jmp 0x46e77b
push esi
lea eax, [esp + 0x288]
push ebx
push eax
call fcn.0046f540
add esp, 0xc
test eax, eax
je 0x46e527
push esi
lea ecx, [esp + 0x288]
push ebx
push ecx
call fcn.0046ef60
add esp, 0xc
test eax, eax
je 0x46e527
xor ebp, ebp
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x2e]
cmp word [esp + 0x338], bp
mov word [esp + 0x2c], bp
rep stosd dword es:[edi], eax
mov dword [ebx], ebp
mov dword [esi], ebp
stosw word es:[edi], ax
mov dword [esp + 0x20], 0x28
je 0x46e67e
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x46e639
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov dword [esi], 0xc
jmp 0x46e527
cmp word [esp + 0x338], 0
lea edi, [esp + 0x338]
je 0x46e66b
cmp ebp, 0xa
jge 0x46e66b
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.0047b770
add esp, 8
test eax, eax
jne 0x46e67e
add edi, 0x50
inc ebp
cmp word [edi], ax
jne 0x46e64b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov dword [esi], 7
jmp 0x46e527
push esi
lea edx, [esp + 0x288]
push ebx
push edx
call fcn.0046f150
add esp, 0xc
test eax, eax
je 0x46e527
mov ebp, dword [esp + 0x3bb8]
push ebp
push esi
lea eax, [esp + 0x28c]
push ebx
push eax
call fcn.0046f290
mov edi, eax
mov eax, dword [0x4fa558]
add esp, 0x10
cmp eax, 1
mov dword [esp + 0x28], edi
je 0x46e527
test edi, edi
jne 0x46e710
mov eax, dword [esi]
cmp eax, 0x1d
je 0x46e710
cmp eax, 0x1e
je 0x46e710
push 0x1389
lea ecx, [esp + 0x18]
call fcn.004a764e
test eax, eax
je 0x46e73e
push 0x138a
lea ecx, [esp + 0x1c]
call fcn.004a764e
test eax, eax
je 0x46e73e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0x200000
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [0x4fa558], 1
je 0x46e527
test edi, edi
jne 0x46e527
mov eax, dword [esi]
cmp eax, 0x1d
je 0x46e527
cmp eax, 0x1e
je 0x46e527
jmp 0x46e69f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov dword [esi], 0x1f
jmp 0x46e527
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov dword [esi], 0xa
jmp 0x46e538
push 0x1389
lea ecx, [esp + 0x18]
call fcn.004a764e
test eax, eax
jne 0x46e784
push str.Error__
lea ecx, [esp + 0x18]
call fcn.004a2dd1
lea ecx, [esp + 0xf90]
push ecx
lea ecx, [esp + 0x28]
call fcn.00447e90
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46e7d7
push eax
lea ecx, [esp + 0x20]
call fcn.004a2cae
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s___lu_
push ecx
mov byte [esp + 0x3bb8], 4
call fcn.004a0c59
add esp, 0x10
mov byte [esp + 0x3ba8], bl
lea ecx, [esp + 0x1c]
jmp 0x46e812
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0046e880
add esp, 8
mov ecx, dword [eax]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x4f01e8
push eax
mov byte [esp + 0x3bb8], 5
call fcn.004a0c59
add esp, 0x10
mov byte [esp + 0x3ba8], bl
lea ecx, [esp + 0x1c]
call fcn.004a2c3a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0x200000
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x24]
mov byte [esp + 0x3ba8], 1
call fcn.00447cd0
lea ecx, [esp + 0x18]
mov byte [esp + 0x3ba8], 0
call fcn.004a2c3a
lea ecx, [esp + 0x14]
mov dword [esp + 0x3ba8], 0xffffffff
call fcn.004a2c3a
mov ecx, dword [esp + 0x3ba0]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3b9c
ret