Function at 0x466c98
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4d100c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
cmp byte [eax + 0xb], 0
js 0x466cd6
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
jmp 0x466ce2
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.00432c10
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x466ced
mov eax, dword [ebx + 4]
test eax, eax
je 0x467369
cmp eax, 2
jb 0x466d6f
mov ecx, ebx
call fcn.004677b2
cmp word [eax], 0x22
jne 0x466d14
mov ecx, ebx
call fcn.0042fe80
cmp word [eax], 0x22
je 0x466d2e
mov ecx, ebx
call fcn.004677b2
cmp word [eax], 0x27
jne 0x466d6f
mov ecx, ebx
call fcn.0042fe80
cmp word [eax], 0x27
jne 0x466d6f
mov edi, ebx
movzx ebx, byte [ebx + 0xb]
test bl, bl
js 0x466d43
mov esi, edi
test ebx, ebx
jne 0x466d50
jmp 0x46778f
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x46778f
mov esi, dword [edi]
lea eax, [ebx - 1]
mov ecx, edi
push eax
call fcn.00412e24
mov word [esi + ebx*2 - 2], 0
mov ecx, edi
push 1
push 0
call fcn.00430a02
mov ebx, edi
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor eax, eax
dec eax
mov dword [ebp - 0x238], eax
test esi, esi
je 0x466d9b
push 0x4c6c2e
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x238], eax
xor edi, edi
mov dword [ebp - 0x258], esi
mov esi, dword [edi*8 + 0x4c6c60]
test esi, esi
je 0x467771
push esi
call fcn.004a3a77
add esp, 4
movzx edx, byte [ebx + 0xb]
mov ecx, ebx
test dl, dl
jns 0x466dc7
mov ecx, dword [ebx]
test eax, eax
mov dword [ebp - 0x234], edi
je 0x466eae
mov dword [ebp - 0x248], esi
test dl, dl
jns 0x466de2
mov edx, dword [ebx + 4]
cmp edx, eax
jl 0x46704c
lea ebx, [ecx + edx*2]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x248]
movzx esi, word [ecx]
mov ecx, dword [ebp - 0x22c]
lea edi, [ecx + edx*2 - 2]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x230], ecx
mov ecx, esi
mov edi, edx
sub edi, eax
inc edi
je 0x46704c
inc edx
xor edi, edi
mov esi, dword [ebp - 0x230]
cmp word [esi + edi], cx
je 0x466e3b
add edi, 2
dec edx
cmp eax, edx
jne 0x466e22
jmp 0x46704c
mov esi, dword [ebp - 0x230]
add esi, edi
je 0x46704c
mov word [ebp - 0x240], cx
mov dword [ebp - 0x23c], ebx
xor edx, edx
mov ecx, esi
movzx esi, word [esi + edx*2]
mov ebx, dword [ebp - 0x248]
cmp si, word [ebx + edx*2]
jne 0x466e76
inc edx
cmp eax, edx
mov esi, ecx
jne 0x466e58
jmp 0x466fb5
mov edx, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x230]
sub edx, ecx
lea ebx, [ecx + edi]
add ebx, 2
sub edx, edi
sar edx, 1
mov dword [ebp - 0x230], ebx
cmp edx, eax
mov ebx, dword [ebp - 0x23c]
movzx ecx, word [ebp - 0x240]
jge 0x466e14
jmp 0x46704c
mov dword [ebp - 0x22c], 0
push esi
call fcn.004a3a77
add esp, 4
mov dword [ebp - 0x230], eax
push 0x208
push 0xff
lea esi, [ebp - 0x218]
push esi
call fcn.0048ea80
add esp, 0xc
mov edi, dword [edi*8 + 0x4c6c64]
mov ecx, dword [ebp - 0x238]
call dword [section..00cfg]
xor eax, eax
push eax
push edi
push esi
push eax
call ecx
test eax, eax
jne 0x466f08
mov word [ebp - 0x218], 0
xor eax, eax
dec eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x224]
push esi
call fcn.00412be0
movzx eax, byte [ebp - 0x219]
test al, al
jns 0x466f3a
mov eax, dword [ebp - 0x220]
test eax, eax
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x230]
je 0x46700b
lea ecx, [ebp - 0x224]
call fcn.0042fe80
cmp word [eax], 0x5c
jne 0x46700b
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x466f6e
mov eax, dword [ebx + 4]
lea edx, [edi + esi]
cmp eax, edx
jbe 0x46700b
mov ecx, ebx
push edx
call fcn.00429890
cmp word [eax], 0x5c
jne 0x46700b
movzx eax, byte [ebp - 0x219]
test al, al
js 0x466fea
test eax, eax
je 0x46778f
cmp al, 6
jae 0x4677a0
dec eax
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x224]
jmp 0x467005
cmp esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x22c]
je 0x46704c
sub esi, eax
cmp esi, 0xfffffffe
je 0x46704c
sar esi, 1
mov dword [ebp - 0x22c], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x248]
jmp 0x466eb8
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x46778f
mov ecx, dword [ebp - 0x224]
dec eax
mov dword [ebp - 0x220], eax
mov word [ecx + eax*2], 0
movzx eax, byte [ebp - 0x219]
test al, al
cmovs eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
lea ecx, [ebp - 0x224]
cmovns edx, ecx
mov ecx, ebx
push eax
push edx
push edi
push esi
call fcn.0043265a
cmp byte [ebp - 0x219], 0
jns 0x46704c
push dword [ebp - 0x224]
call fcn.0048ae3c
add esp, 4
mov edi, dword [ebp - 0x234]
inc edi
cmp edi, 7
mov ebx, dword [ebp + 8]
jne 0x466da3
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x248], eax
je 0x467082
push 0x4c6c9a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x467085
xor eax, eax
dec eax
mov cl, byte [ebx + 0xb]
test cl, cl
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
mov edx, ebx
cmovs edx, esi
mov byte [ebp - 0x230], cl
movzx ecx, cl
mov ebx, ecx
cmovs ebx, edi
cmp ebx, 0xc
jge 0x4670b2
mov dl, byte [ebp - 0x230]
jmp 0x467157
mov dword [ebp - 0x234], edi
mov edi, esi
mov dword [ebp - 0x240], eax
lea eax, [edx + ebx*2]
mov dword [ebp - 0x244], eax
lea eax, [edx + ebx*2 - 2]
mov dword [ebp - 0x238], eax
mov esi, edx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x23c], edx
add ebx, 0xfffffff5
je 0x467144
xor eax, eax
mov edi, dword [ebp - 0x234]
mov dl, byte [ebp - 0x230]
cmp word [esi + eax], 0x24
je 0x467103
add eax, 2
dec ebx
jne 0x4670f4
jmp 0x467151
mov ebx, esi
add ebx, eax
je 0x467151
mov edx, 0xffffffe8
movzx edi, word [ebx + edx + 0x18]
cmp di, word [edx + 0x4c6cda]
jne 0x467126
add edx, 2
jne 0x46710e
jmp 0x4673fe
mov edx, dword [ebp - 0x238]
sub edx, esi
add esi, eax
add esi, 2
sub edx, eax
mov ebx, edx
shr ebx, 1
cmp edx, 0x18
mov edi, dword [ebp - 0x22c]
jge 0x4670e1
mov esi, edi
mov edi, dword [ebp - 0x234]
jmp 0x4670a7
mov esi, dword [ebp - 0x22c]
test dl, dl
cmovns esi, dword [ebp + 8]
cmovs ecx, edi
cmp ecx, 0xf
jge 0x4671eb
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor edi, edi
dec edi
mov eax, edi
test esi, esi
je 0x46718b
push 0x4c6cfe
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x230], esi
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test eax, eax
mov ebx, dword [ebp + 8]
je 0x4671b9
push 0x4c6d36
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x234], esi
mov dl, byte [ebx + 0xb]
test dl, dl
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
cmovs ebx, eax
movzx ecx, dl
mov edi, ecx
cmovs edi, esi
cmp edi, 0xe
jge 0x467269
mov ebx, dword [ebp + 8]
jmp 0x467315
lea eax, [esi + ecx*2]
lea edx, [esi + ecx*2]
add edx, 0xfffffffe
mov dword [ebp - 0x230], edx
mov edi, esi
add ecx, 0xfffffff2
je 0x467169
xor edx, edx
cmp word [edi + edx], 0x24
je 0x467219
add edx, 2
dec ecx
jne 0x467207
jmp 0x467169
mov ebx, edi
add ebx, edx
je 0x467169
mov dword [ebp - 0x234], eax
mov eax, 0xffffffe2
movzx ecx, word [ebx + eax + 0x1e]
cmp cx, word [eax + 0x4c6cfa]
jne 0x467246
add eax, 2
jne 0x46722e
jmp 0x4674fb
mov eax, dword [ebp - 0x230]
sub eax, edi
add edi, edx
add edi, 2
sub eax, edx
mov ecx, eax
shr ecx, 1
cmp eax, 0x1e
mov eax, dword [ebp - 0x234]
jge 0x4671fc
jmp 0x467169
mov dword [ebp - 0x238], esi
lea esi, [ebx + edi*2]
mov dword [ebp - 0x250], esi
mov esi, dword [ebp - 0x238]
mov byte [ebp - 0x22c], dl
lea edx, [ebx + edi*2 - 2]
mov dword [ebp - 0x254], edx
mov dl, byte [ebp - 0x22c]
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x23c], eax
add edi, 0xfffffff3
je 0x4671e3
xor eax, eax
cmp word [ebx + eax], 0x24
je 0x4672ba
add eax, 2
dec edi
jne 0x4672ab
jmp 0x46730c
mov edi, ebx
add edi, eax
je 0x46730c
mov edx, 0xffffffe4
movzx esi, word [edi + edx + 0x1c]
cmp si, word [edx + 0x4c6d60]
jne 0x4672dd
add edx, 2
jne 0x4672c5
jmp 0x4675b9
mov edx, dword [ebp - 0x254]
sub edx, ebx
add ebx, eax
add ebx, 2
sub edx, eax
mov edi, edx
shr edi, 1
cmp edx, 0x1c
mov eax, dword [ebp - 0x23c]
mov dl, byte [ebp - 0x22c]
mov esi, dword [ebp - 0x238]
jge 0x4672a0
jmp 0x4671e3
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
test dl, dl
cmovns eax, ebx
cmovs ecx, esi
cmp ecx, 0xf
jge 0x467380
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x467333
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x230]
test eax, eax
mov esi, dword [ebp - 0x258]
je 0x46734a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x248]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x46735e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x467369
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0x24c
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [eax + ecx*2]
lea edx, [eax + ecx*2]
add edx, 0xfffffffe
mov dword [ebp - 0x22c], edx
mov ebx, eax
add ecx, 0xfffffff2
je 0x467322
xor edx, edx
cmp word [ebx + edx], 0x24
je 0x4673aa
add edx, 2
dec ecx
jne 0x467398
jmp 0x467322
mov edi, ebx
add edi, edx
je 0x467322
mov dword [ebp - 0x238], esi
mov esi, eax
mov eax, 0xffffffe2
movzx ecx, word [edi + eax + 0x1e]
cmp cx, word [eax + 0x4c6d80]
jne 0x4673d9
add eax, 2
jne 0x4673c1
jmp 0x467699
mov eax, dword [ebp - 0x22c]
sub eax, ebx
add ebx, edx
add ebx, 2
sub eax, edx
mov ecx, eax
shr ecx, 1
cmp eax, 0x1e
mov eax, esi
mov esi, dword [ebp - 0x238]
jge 0x467391
jmp 0x467322
cmp ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x230]
je 0x46775b
sub ebx, dword [ebp - 0x23c]
cmp ebx, 0xfffffffe
mov edi, dword [ebp - 0x234]
je 0x467157
xor eax, eax
lea edi, [ebp - 0x224]
mov dword [edi], eax
mov esi, dword [ebp - 0x240]
mov ecx, esi
call dword [section..00cfg]
push edi
xor eax, eax
push eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x4674e8
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.0048ae73
add esp, 4
mov edi, eax
mov ecx, esi
call dword [section..00cfg]
lea eax, [ebp - 0x224]
push eax
push edi
call esi
xor eax, eax
dec eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
lea esi, [ebp - 0x218]
mov ecx, esi
push edi
call fcn.00412be0
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x4674b7
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xc
push ebx
call fcn.0043265a
cmp byte [ebp - 0x20d], 0
jns 0x4674db
push dword [ebp - 0x218]
call fcn.0048ae3c
add esp, 4
test edi, edi
je 0x4674e8
push edi
call fcn.0048ae7c
add esp, 4
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
movzx ecx, dl
jmp 0x467157
cmp ebx, dword [ebp - 0x234]
je 0x467169
sub ebx, esi
cmp ebx, 0xfffffffe
je 0x467169
xor eax, eax
lea edi, [ebp - 0x224]
mov dword [edi], eax
push edi
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [edi]
test eax, eax
je 0x467169
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.0048ae73
add esp, 4
mov esi, eax
push edi
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea edi, [ebp - 0x218]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push esi
call fcn.00412be0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x46757f
mov eax, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push edi
push 0xf
push ebx
call fcn.0043265a
cmp byte [ebp - 0x20d], 0
jns 0x4675a3
push dword [ebp - 0x218]
call fcn.0048ae3c
add esp, 4
test esi, esi
je 0x467169
push esi
call fcn.0048ae7c
add esp, 4
jmp 0x467169
cmp edi, dword [ebp - 0x250]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
mov dl, byte [ebp - 0x22c]
je 0x467766
sub edi, dword [ebp - 0x24c]
cmp edi, 0xfffffffe
mov esi, dword [ebp - 0x238]
je 0x467315
xor esi, esi
lea eax, [ebp - 0x224]
mov dword [eax], esi
lea ebx, [ebp - 0x228]
mov dword [ebx], esi
mov ecx, dword [ebp - 0x244]
call dword [section..00cfg]
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
push 0xa
push 0xffffffffffffffff
push esi
call ecx
test eax, eax
je 0x467689
sar edi, 1
xor eax, eax
dec eax
lea esi, [ebp - 0x218]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [ebp - 0x224]
call fcn.00412be0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x467651
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.0043265a
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x467689
push dword [ebp - 0x218]
call fcn.0048ae3c
add esp, 4
mov dl, byte [ebx + 0xb]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
movzx ecx, dl
jmp 0x467315
cmp edi, dword [ebp - 0x238]
je 0x467322
sub edi, esi
cmp edi, 0xfffffffe
je 0x467322
xor esi, esi
lea eax, [ebp - 0x224]
mov dword [eax], esi
lea ebx, [ebp - 0x228]
mov dword [ebx], esi
mov ecx, dword [ebp - 0x244]
call dword [section..00cfg]
push ebx
lea eax, [ebp - 0x224]
push eax
push 6
push 0xffffffffffffffff
push esi
call ecx
test eax, eax
je 0x467322
sar edi, 1
xor eax, eax
dec eax
lea esi, [ebp - 0x218]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [ebp - 0x224]
call fcn.00412be0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x467719
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xf
push edi
call fcn.0043265a
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x467322
push dword [ebp - 0x218]
call fcn.0048ae3c
add esp, 4
jmp 0x467322
mov edi, dword [ebp - 0x234]
jmp 0x467157
mov esi, dword [ebp - 0x238]
jmp 0x467315
push str.string::find__:_received_nullptr
push str.__s___nullptr
push 0xd00
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.00414c6c
push str.string::pop_back__:_string_is_already_empty
push str._empty__
push 0xc07
jmp 0x467780
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6c6
jmp 0x467780