Function at 0x1c64588
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 [0x1cf7014]
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 0x1c645c6
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
jmp 0x1c645d2
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.01c553c0
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c645dd
mov eax, dword [ebx + 4]
test eax, eax
je 0x1c64c5b
cmp eax, 2
jb 0x1c6465f
mov ecx, ebx
call fcn.01c650a4
cmp word [eax], 0x22
jne 0x1c64604
mov ecx, ebx
call fcn.01c33c6e
cmp word [eax], 0x22
je 0x1c6461e
mov ecx, ebx
call fcn.01c650a4
cmp word [eax], 0x27
jne 0x1c6465f
mov ecx, ebx
call fcn.01c33c6e
cmp word [eax], 0x27
jne 0x1c6465f
mov edi, ebx
movzx ebx, byte [ebx + 0xb]
test bl, bl
js 0x1c64633
mov esi, edi
test ebx, ebx
jne 0x1c64640
jmp 0x1c65081
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1c65081
mov esi, dword [edi]
lea eax, [ebx - 1]
mov ecx, edi
push eax
call fcn.01c32e12
mov word [esi + ebx*2 - 2], 0
mov ecx, edi
push 1
push 0
call fcn.01c532f2
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 0x1c6468b
push 0x1cea3ae
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 + 0x1cea3e0]
test esi, esi
je 0x1c65063
push esi
call fcn.01cc8df4
add esp, 4
movzx edx, byte [ebx + 0xb]
mov ecx, ebx
test dl, dl
jns 0x1c646b7
mov ecx, dword [ebx]
test eax, eax
mov dword [ebp - 0x234], edi
je 0x1c647a0
mov dword [ebp - 0x248], esi
test dl, dl
jns 0x1c646d2
mov edx, dword [ebx + 4]
cmp edx, eax
jl 0x1c6493e
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]
add edi, 0xfffffffe
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x230], ecx
mov ecx, esi
mov edi, edx
sub edi, eax
inc edi
je 0x1c6493e
inc edx
xor edi, edi
mov esi, dword [ebp - 0x230]
cmp word [esi + edi], cx
je 0x1c6472d
add edi, 2
dec edx
cmp eax, edx
jne 0x1c64714
jmp 0x1c6493e
mov esi, dword [ebp - 0x230]
add esi, edi
je 0x1c6493e
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 0x1c64768
inc edx
cmp eax, edx
mov esi, ecx
jne 0x1c6474a
jmp 0x1c648a7
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 0x1c64706
jmp 0x1c6493e
mov dword [ebp - 0x22c], 0
push esi
call fcn.01cc8df4
add esp, 4
mov dword [ebp - 0x230], eax
push 0x208
push 0xff
lea esi, [ebp - 0x218]
push esi
call fcn.01cb3330
add esp, 0xc
mov edi, dword [edi*8 + 0x1cea3e4]
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 0x1c647fa
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.01c33dba
movzx eax, byte [ebp - 0x219]
test al, al
jns 0x1c6482c
mov eax, dword [ebp - 0x220]
test eax, eax
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x230]
je 0x1c648fd
lea ecx, [ebp - 0x224]
call fcn.01c33c6e
cmp word [eax], 0x5c
jne 0x1c648fd
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c64860
mov eax, dword [ebx + 4]
lea edx, [edi + esi]
cmp eax, edx
jbe 0x1c648fd
mov ecx, ebx
push edx
call fcn.01c4c210
cmp word [eax], 0x5c
jne 0x1c648fd
movzx eax, byte [ebp - 0x219]
test al, al
js 0x1c648dc
test eax, eax
je 0x1c65081
cmp al, 6
jae 0x1c65092
dec eax
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x224]
jmp 0x1c648f7
cmp esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x22c]
je 0x1c6493e
sub esi, eax
cmp esi, 0xfffffffe
je 0x1c6493e
sar esi, 1
mov dword [ebp - 0x22c], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x248]
jmp 0x1c647aa
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1c65081
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.01c54e10
cmp byte [ebp - 0x219], 0
jns 0x1c6493e
push dword [ebp - 0x224]
call fcn.01cafb00
add esp, 4
mov edi, dword [ebp - 0x234]
inc edi
cmp edi, 7
mov ebx, dword [ebp + 8]
jne 0x1c64693
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x248], eax
je 0x1c64974
push 0x1cea41a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1c64977
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 0x1c649a4
mov dl, byte [ebp - 0x230]
jmp 0x1c64a49
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 0x1c64a36
xor eax, eax
mov edi, dword [ebp - 0x234]
mov dl, byte [ebp - 0x230]
cmp word [esi + eax], 0x24
je 0x1c649f5
add eax, 2
dec ebx
jne 0x1c649e6
jmp 0x1c64a43
mov ebx, esi
add ebx, eax
je 0x1c64a43
mov edx, 0xffffffe8
movzx edi, word [ebx + edx + 0x18]
cmp di, word [edx + 0x1cea45a]
jne 0x1c64a18
add edx, 2
jne 0x1c64a00
jmp 0x1c64cf0
mov edx, dword [ebp - 0x238]
sub edx, esi
add esi, eax
add esi, 2
sub edx, eax
mov ebx, edx
sar ebx, 1
cmp edx, 0x18
mov edi, dword [ebp - 0x22c]
jge 0x1c649d3
mov esi, edi
mov edi, dword [ebp - 0x234]
jmp 0x1c64999
mov esi, dword [ebp - 0x22c]
test dl, dl
cmovns esi, dword [ebp + 8]
cmovs ecx, edi
cmp ecx, 0xf
jge 0x1c64add
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 0x1c64a7d
push 0x1cea47e
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 0x1c64aab
push 0x1cea4b6
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 0x1c64b5b
mov ebx, dword [ebp + 8]
jmp 0x1c64c07
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 0x1c64a5b
xor edx, edx
cmp word [edi + edx], 0x24
je 0x1c64b0b
add edx, 2
dec ecx
jne 0x1c64af9
jmp 0x1c64a5b
mov ebx, edi
add ebx, edx
je 0x1c64a5b
mov dword [ebp - 0x234], eax
mov eax, 0xffffffe2
movzx ecx, word [ebx + eax + 0x1e]
cmp cx, word [eax + 0x1cea47a]
jne 0x1c64b38
add eax, 2
jne 0x1c64b20
jmp 0x1c64ded
mov eax, dword [ebp - 0x230]
sub eax, edi
add edi, edx
add edi, 2
sub eax, edx
mov ecx, eax
sar ecx, 1
cmp eax, 0x1e
mov eax, dword [ebp - 0x234]
jge 0x1c64aee
jmp 0x1c64a5b
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 0x1c64ad5
xor eax, eax
cmp word [ebx + eax], 0x24
je 0x1c64bac
add eax, 2
dec edi
jne 0x1c64b9d
jmp 0x1c64bfe
mov edi, ebx
add edi, eax
je 0x1c64bfe
mov edx, 0xffffffe4
movzx esi, word [edi + edx + 0x1c]
cmp si, word [edx + 0x1cea4e0]
jne 0x1c64bcf
add edx, 2
jne 0x1c64bb7
jmp 0x1c64eab
mov edx, dword [ebp - 0x254]
sub edx, ebx
add ebx, eax
add ebx, 2
sub edx, eax
mov edi, edx
sar edi, 1
cmp edx, 0x1c
mov eax, dword [ebp - 0x23c]
mov dl, byte [ebp - 0x22c]
mov esi, dword [ebp - 0x238]
jge 0x1c64b92
jmp 0x1c64ad5
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
test dl, dl
cmovns eax, ebx
cmovs ecx, esi
cmp ecx, 0xf
jge 0x1c64c72
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1c64c25
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x230]
test eax, eax
mov esi, dword [ebp - 0x258]
je 0x1c64c3c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x248]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1c64c50
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x1c64c5b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
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 0x1c64c14
xor edx, edx
cmp word [ebx + edx], 0x24
je 0x1c64c9c
add edx, 2
dec ecx
jne 0x1c64c8a
jmp 0x1c64c14
mov edi, ebx
add edi, edx
je 0x1c64c14
mov dword [ebp - 0x238], esi
mov esi, eax
mov eax, 0xffffffe2
movzx ecx, word [edi + eax + 0x1e]
cmp cx, word [eax + 0x1cea500]
jne 0x1c64ccb
add eax, 2
jne 0x1c64cb3
jmp 0x1c64f8b
mov eax, dword [ebp - 0x22c]
sub eax, ebx
add ebx, edx
add ebx, 2
sub eax, edx
mov ecx, eax
sar ecx, 1
cmp eax, 0x1e
mov eax, esi
mov esi, dword [ebp - 0x238]
jge 0x1c64c83
jmp 0x1c64c14
cmp ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x230]
je 0x1c6504d
sub ebx, dword [ebp - 0x23c]
cmp ebx, 0xfffffffe
mov edi, dword [ebp - 0x234]
je 0x1c64a49
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 0x1c64dda
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.01cafb33
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.01c33dba
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1c64da9
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.01c54e10
cmp byte [ebp - 0x20d], 0
jns 0x1c64dcd
push dword [ebp - 0x218]
call fcn.01cafb00
add esp, 4
test edi, edi
je 0x1c64dda
push edi
call fcn.01cafb3c
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 0x1c64a49
cmp ebx, dword [ebp - 0x234]
je 0x1c64a5b
sub ebx, esi
cmp ebx, 0xfffffffe
je 0x1c64a5b
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 0x1c64a5b
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.01cafb33
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.01c33dba
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c64e71
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.01c54e10
cmp byte [ebp - 0x20d], 0
jns 0x1c64e95
push dword [ebp - 0x218]
call fcn.01cafb00
add esp, 4
test esi, esi
je 0x1c64a5b
push esi
call fcn.01cafb3c
add esp, 4
jmp 0x1c64a5b
cmp edi, dword [ebp - 0x250]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
mov dl, byte [ebp - 0x22c]
je 0x1c65058
sub edi, dword [ebp - 0x24c]
cmp edi, 0xfffffffe
mov esi, dword [ebp - 0x238]
je 0x1c64c07
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 0x1c64f7b
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.01c33dba
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c64f43
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.01c54e10
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x1c64f7b
push dword [ebp - 0x218]
call fcn.01cafb00
add esp, 4
mov dl, byte [ebx + 0xb]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
movzx ecx, dl
jmp 0x1c64c07
cmp edi, dword [ebp - 0x238]
je 0x1c64c14
sub edi, esi
cmp edi, 0xfffffffe
je 0x1c64c14
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 0x1c64c14
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.01c33dba
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c6500b
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.01c54e10
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x1c64c14
push dword [ebp - 0x218]
call fcn.01cafb00
add esp, 4
jmp 0x1c64c14
mov edi, dword [ebp - 0x234]
jmp 0x1c64a49
mov esi, dword [ebp - 0x238]
jmp 0x1c64c07
push str.string::find__:_received_nullptr
push str.__s___nullptr
push 0xdb7
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.01c36838
push str.string::pop_back__:_string_is_already_empty
push str._empty__
push 0xcb9
jmp 0x1c65072
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6cf
jmp 0x1c65072