Function at 0x4653fc
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 [0x4e3014]
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 0x46543a
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
jmp 0x465446
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.00433860
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x465451
mov eax, dword [ebx + 4]
test eax, eax
je 0x465acd
cmp eax, 2
jb 0x4654d3
mov ecx, ebx
call fcn.00465f16
cmp word [eax], 0x22
jne 0x465478
mov ecx, ebx
call fcn.00430bf0
cmp word [eax], 0x22
je 0x465492
mov ecx, ebx
call fcn.00465f16
cmp word [eax], 0x27
jne 0x4654d3
mov ecx, ebx
call fcn.00430bf0
cmp word [eax], 0x27
jne 0x4654d3
mov edi, ebx
movzx ebx, byte [ebx + 0xb]
test bl, bl
js 0x4654a7
mov esi, edi
test ebx, ebx
jne 0x4654b4
jmp 0x465ef3
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x465ef3
mov esi, dword [edi]
lea eax, [ebx - 1]
mov ecx, edi
push eax
call fcn.004130a2
mov word [esi + ebx*2 - 2], 0
mov ecx, edi
push 1
push 0
call fcn.00431682
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 0x4654ff
push 0x4d7a2e
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 + 0x4d7a60]
test esi, esi
je 0x465ed5
push esi
call fcn.004b414c
add esp, 4
movzx edx, byte [ebx + 0xb]
mov ecx, ebx
test dl, dl
jns 0x46552b
mov ecx, dword [ebx]
test eax, eax
mov dword [ebp - 0x234], edi
je 0x465612
mov dword [ebp - 0x248], esi
test dl, dl
jns 0x465546
mov edx, dword [ebx + 4]
cmp edx, eax
jl 0x4657b0
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 0x4657b0
inc edx
xor edi, edi
mov esi, dword [ebp - 0x230]
cmp word [esi + edi], cx
je 0x46559f
add edi, 2
dec edx
cmp eax, edx
jne 0x465586
jmp 0x4657b0
mov esi, dword [ebp - 0x230]
add esi, edi
je 0x4657b0
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 0x4655da
inc edx
cmp eax, edx
mov esi, ecx
jne 0x4655bc
jmp 0x465719
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 0x465578
jmp 0x4657b0
mov dword [ebp - 0x22c], 0
push esi
call fcn.004b414c
add esp, 4
mov dword [ebp - 0x230], eax
push 0x208
push 0xff
lea esi, [ebp - 0x218]
push esi
call fcn.0049bea0
add esp, 0xc
mov edi, dword [edi*8 + 0x4d7a64]
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 0x46566c
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.00412ea0
movzx eax, byte [ebp - 0x219]
test al, al
jns 0x46569e
mov eax, dword [ebp - 0x220]
test eax, eax
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x230]
je 0x46576f
lea ecx, [ebp - 0x224]
call fcn.00430bf0
cmp word [eax], 0x5c
jne 0x46576f
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4656d2
mov eax, dword [ebx + 4]
lea edx, [edi + esi]
cmp eax, edx
jbe 0x46576f
mov ecx, ebx
push edx
call fcn.0042a450
cmp word [eax], 0x5c
jne 0x46576f
movzx eax, byte [ebp - 0x219]
test al, al
js 0x46574e
test eax, eax
je 0x465ef3
cmp al, 6
jae 0x465f04
dec eax
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x224]
jmp 0x465769
cmp esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x22c]
je 0x4657b0
sub esi, eax
cmp esi, 0xfffffffe
je 0x4657b0
sar esi, 1
mov dword [ebp - 0x22c], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x248]
jmp 0x46561c
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x465ef3
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.004331c0
cmp byte [ebp - 0x219], 0
jns 0x4657b0
push dword [ebp - 0x224]
call fcn.0049893c
add esp, 4
mov edi, dword [ebp - 0x234]
inc edi
cmp edi, 7
mov ebx, dword [ebp + 8]
jne 0x465507
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x248], eax
je 0x4657e6
push 0x4d7a9a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4657e9
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 0x465816
mov dl, byte [ebp - 0x230]
jmp 0x4658bb
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 0x4658a8
xor eax, eax
mov edi, dword [ebp - 0x234]
mov dl, byte [ebp - 0x230]
cmp word [esi + eax], 0x24
je 0x465867
add eax, 2
dec ebx
jne 0x465858
jmp 0x4658b5
mov ebx, esi
add ebx, eax
je 0x4658b5
mov edx, 0xffffffe8
movzx edi, word [ebx + edx + 0x18]
cmp di, word [edx + 0x4d7ada]
jne 0x46588a
add edx, 2
jne 0x465872
jmp 0x465b62
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 0x465845
mov esi, edi
mov edi, dword [ebp - 0x234]
jmp 0x46580b
mov esi, dword [ebp - 0x22c]
test dl, dl
cmovns esi, dword [ebp + 8]
cmovs ecx, edi
cmp ecx, 0xf
jge 0x46594f
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 0x4658ef
push 0x4d7afe
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 0x46591d
push 0x4d7b36
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 0x4659cd
mov ebx, dword [ebp + 8]
jmp 0x465a79
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 0x4658cd
xor edx, edx
cmp word [edi + edx], 0x24
je 0x46597d
add edx, 2
dec ecx
jne 0x46596b
jmp 0x4658cd
mov ebx, edi
add ebx, edx
je 0x4658cd
mov dword [ebp - 0x234], eax
mov eax, 0xffffffe2
movzx ecx, word [ebx + eax + 0x1e]
cmp cx, word [eax + 0x4d7afa]
jne 0x4659aa
add eax, 2
jne 0x465992
jmp 0x465c5f
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 0x465960
jmp 0x4658cd
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 0x465947
xor eax, eax
cmp word [ebx + eax], 0x24
je 0x465a1e
add eax, 2
dec edi
jne 0x465a0f
jmp 0x465a70
mov edi, ebx
add edi, eax
je 0x465a70
mov edx, 0xffffffe4
movzx esi, word [edi + edx + 0x1c]
cmp si, word [edx + 0x4d7b60]
jne 0x465a41
add edx, 2
jne 0x465a29
jmp 0x465d1d
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 0x465a04
jmp 0x465947
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
test dl, dl
cmovns eax, ebx
cmovs ecx, esi
cmp ecx, 0xf
jge 0x465ae4
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x465a97
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x230]
test eax, eax
mov esi, dword [ebp - 0x258]
je 0x465aae
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x248]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x465ac2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x465acd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
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 0x465a86
xor edx, edx
cmp word [ebx + edx], 0x24
je 0x465b0e
add edx, 2
dec ecx
jne 0x465afc
jmp 0x465a86
mov edi, ebx
add edi, edx
je 0x465a86
mov dword [ebp - 0x238], esi
mov esi, eax
mov eax, 0xffffffe2
movzx ecx, word [edi + eax + 0x1e]
cmp cx, word [eax + 0x4d7b80]
jne 0x465b3d
add eax, 2
jne 0x465b25
jmp 0x465dfd
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 0x465af5
jmp 0x465a86
cmp ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x230]
je 0x465ebf
sub ebx, dword [ebp - 0x23c]
cmp ebx, 0xfffffffe
mov edi, dword [ebp - 0x234]
je 0x4658bb
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 0x465c4c
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.00498973
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.00412ea0
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x465c1b
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.004331c0
cmp byte [ebp - 0x20d], 0
jns 0x465c3f
push dword [ebp - 0x218]
call fcn.0049893c
add esp, 4
test edi, edi
je 0x465c4c
push edi
call fcn.0049897c
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 0x4658bb
cmp ebx, dword [ebp - 0x234]
je 0x4658cd
sub ebx, esi
cmp ebx, 0xfffffffe
je 0x4658cd
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 0x4658cd
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.00498973
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.00412ea0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x465ce3
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.004331c0
cmp byte [ebp - 0x20d], 0
jns 0x465d07
push dword [ebp - 0x218]
call fcn.0049893c
add esp, 4
test esi, esi
je 0x4658cd
push esi
call fcn.0049897c
add esp, 4
jmp 0x4658cd
cmp edi, dword [ebp - 0x250]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
mov dl, byte [ebp - 0x22c]
je 0x465eca
sub edi, dword [ebp - 0x24c]
cmp edi, 0xfffffffe
mov esi, dword [ebp - 0x238]
je 0x465a79
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 0x465ded
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.00412ea0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x465db5
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.004331c0
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x465ded
push dword [ebp - 0x218]
call fcn.0049893c
add esp, 4
mov dl, byte [ebx + 0xb]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
movzx ecx, dl
jmp 0x465a79
cmp edi, dword [ebp - 0x238]
je 0x465a86
sub edi, esi
cmp edi, 0xfffffffe
je 0x465a86
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 0x465a86
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.00412ea0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x465e7d
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.004331c0
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x465a86
push dword [ebp - 0x218]
call fcn.0049893c
add esp, 4
jmp 0x465a86
mov edi, dword [ebp - 0x234]
jmp 0x4658bb
mov esi, dword [ebp - 0x238]
jmp 0x465a79
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.00414fd8
push str.string::pop_back__:_string_is_already_empty
push str._empty__
push 0xcb9
jmp 0x465ee4
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6cf
jmp 0x465ee4