Function at 0x4509d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfd94
mov eax, dword fs:[0]
push eax
mov eax, 0x1974
call fcn.004b0a60
mov eax, dword [0x554008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1918], eax
mov eax, dword [eax + 4]
push 0x800
mov dword [ebp - 0x1904], eax
lea eax, [ebp - 0x1900]
push 0
push eax
mov dword [ebp - method.HttpRequest.virtual_0], vtable.HttpRequest.0
call fcn.0049ca40
push 0x800
lea eax, [ebp - 0x1100]
push 0
push eax
call fcn.0049ca40
push 0x804
lea eax, [ebp - 0x900]
push 0
push eax
call fcn.0049ca40
add esp, 0x20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1900]
push eax
push ecx
lea ecx, [ebp - 0x1908]
call fcn.00453320
mov byte [ebp - 0x1909], 1
nop dword [eax]
mov eax, dword [ebp - 0x1904]
xor esi, esi
mov dword [ebp - 0x1910], eax
lea edi, [esi + 1]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x1911]
add eax, esi
push edi
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
add esi, eax
sub edi, eax
mov eax, dword [ebp - 0x1910]
cmp esi, 1
jb 0x450a91
mov al, byte [ebp - 0x1911]
cmp al, 0xa
jne 0x450bdd
cmp byte [ebp - 0x1909], 0
je 0x450a72
lea eax, [ebp - 0x1900]
push eax
lea ecx, [ebp - 0x1980]
call fcn.0044edb0
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
mov dword [ebp - 0x1928], 0
mov dword [ebp - 0x1924], 0
mov dword [ebp - 0x1920], 0
lea eax, [ebp - 0x1928]
mov byte [ebp - 4], 2
push eax
push 1
mov ecx, eax
call fcn.00403af0
mov eax, dword [ebp - 0x1924]
mov ecx, dword [ebp - 0x1928]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x525db4
push ecx
call fcn.0049e720
add esp, 0xc
lea eax, [ebp - 0x192c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1980]
call fcn.0044efc0
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x450b6a
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x100], 0
lea eax, [ebp - 0x1100]
push eax
lea eax, [ebp - 0x1900]
push str.GET__2000s_HTTP_
push eax
call fcn.00453290
add esp, 0xc
cmp eax, 1
jne 0x4512fe
lea ecx, [ebp - 0x1100]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450b97
xor eax, eax
sub ecx, edx
mov dword [ebp - 0x1910], ecx
mov byte [ebp - 0x1909], al
je 0x450c08
lea edx, [ebp - 0x900]
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x1100]
cmp cl, 0x3f
jne 0x450bf1
mov byte [ebp + eax - 0x1100], 0
mov byte [ebp - 0x1909], 1
jmp 0x450bfd
cmp al, 0x20
jl 0x450a80
mov byte [ebp - 0x1909], 0
jmp 0x450a80
cmp byte [ebp - 0x1909], 0
je 0x450bfd
mov byte [edx], cl
inc edx
mov ecx, dword [ebp - 0x1910]
inc eax
cmp eax, ecx
jb 0x450bc0
push 0xc
call fcn.0049b504
add esp, 4
mov dword [ebp - 0x1910], eax
lea ecx, [ebp - 0x900]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00451530
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1924]
mov esi, edx
mov ecx, dword [ebp - 0x1928]
sub esi, ecx
mov dword [ebp - 0x100], eax
xor eax, eax
sar esi, 1
lea edi, [eax + 0x20]
sub esi, 1
je 0x450c6e
cmp word [ecx + eax*2], 0xa
lea edx, [ecx + eax*2]
jne 0x450c63
mov word [edx], di
mov ecx, dword [ebp - 0x1928]
inc eax
cmp eax, esi
jb 0x450c50
mov edx, dword [ebp - 0x1924]
sub edx, ecx
xor eax, eax
sar edx, 1
lea esi, [edx - 1]
test esi, esi
je 0x450c98
nop dword [eax + eax]
cmp word [ecx + eax*2], 9
lea edx, [ecx + eax*2]
jne 0x450c93
mov word [edx], di
mov ecx, dword [ebp - 0x1928]
inc eax
cmp eax, esi
jb 0x450c80
mov esi, dword [ebp - 0x1918]
push dword [esi + 0x10]
push ecx
push 0x5342d4
push dword [esi + 0x1c]
call fcn.00405e90
mov eax, dword [esi + 8]
add esp, 0x10
mov dword [ebp - 0x1910], eax
mov dword [ebp - method.HttpReply.virtual_0], vtable.HttpReply.0
mov dword [ebp - 0x196c], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1100]
mov ecx, 0x5342f0
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x450d00
test dl, dl
je 0x450cfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x450d00
add eax, 2
add ecx, 2
test dl, dl
jne 0x450ce0
xor eax, eax
jmp 0x450d05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45121b
mov dword [ebp - method.AnsiStringStorage.virtual_0], vtable.AnsiStringStorage.0
mov dword [ebp - 0x1950], eax
mov dword [ebp - 0x194c], eax
mov dword [ebp - 0x1948], eax
lea eax, [ebp - 0x1950]
mov byte [ebp - 4], 6
push eax
push 2
mov ecx, eax
call fcn.00429f60
mov eax, dword [ebp - 0x194c]
mov ecx, dword [ebp - 0x1950]
sub eax, ecx
push eax
push 0x534330
push ecx
call fcn.0049e720
add esp, 0xc
mov byte [ebp - 4], 7
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
mov byte [ebp - 0x1909], 1
call dword [eax + 4]
mov edi, dword [0x558fbc]
mov byte [ebp - 4], 8
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov byte [ebp - 4], 7
lea ecx, [edi + 0xdc]
mov eax, dword [edi + 0xdc]
call dword [eax + 4]
mov al, byte [edi + 0x5c]
mov byte [ebp - 0x1911], al
mov byte [ebp - 4], 9
lea ecx, [edi + 0xdc]
mov eax, dword [edi + 0xdc]
call dword [eax + 8]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x1910], edx
test edx, edx
je 0x450dd6
cmp dword [edx + 8], 0
jbe 0x450dd6
mov al, 1
jmp 0x450dd8
xor al, al
test al, al
je 0x451018
cmp byte [ebp - 0x1911], 0
je 0x451018
mov eax, dword [edx + 8]
xor ecx, ecx
mov dword [ebp - 0x191c], ecx
test eax, eax
je 0x451018
cmp ecx, eax
jb 0x450e08
xor esi, esi
jmp 0x450e63
mov eax, dword [edx + 4]
mov eax, dword [eax]
test ecx, ecx
je 0x450e58
mov edx, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x450e39
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x450e35
cmp eax, dword [ecx + 8]
jne 0x450e35
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x450e25
mov eax, ecx
jmp 0x450e4d
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x450e4d
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x450e43
sub edx, 1
jne 0x450e13
mov edx, dword [ebp - 0x1910]
cmp dword [eax + 0x24], 0x10
lea esi, [eax + 0x10]
jb 0x450e63
mov esi, dword [esi]
push esi
mov ecx, edx
call fcn.004519f0
mov edi, eax
mov dword [ebp - method.AppletParameter.virtual_0], vtable.AppletParameter.0
lea eax, [ebp - 0x1940]
mov dword [ebp - method.AnsiStringStorage.virtual_0], vtable.AnsiStringStorage.0
mov dword [ebp - 0x1968], eax
mov dword [ebp - 0x193c], 0
mov dword [ebp - 0x1938], 0
mov dword [ebp - 0x1934], 0
lea eax, [ebp - 0x193c]
mov byte [ebp - 4], 0xa
push eax
push 1
mov ecx, eax
call fcn.00429f60
mov eax, dword [ebp - 0x1938]
mov ecx, dword [ebp - 0x193c]
sub eax, ecx
push eax
push 0x5341c8
push ecx
call fcn.0049e720
add esp, 0xc
mov byte [ebp - 4], 0xb
push esi
mov byte [ebp - 0x1930], 0
call fcn.004514c0
test al, al
je 0x450eff
push edi
call fcn.004514c0
test al, al
je 0x450eff
mov al, 1
jmp 0x450f01
xor al, al
mov byte [ebp - 0x1930], al
test al, al
je 0x450f58
mov eax, dword [0x53443c]
movups xmm0, xmmword [str._PARAM_NAME__s__VALUE__s____n]
mov dword [ebp - 0x18], eax
mov ax, word [0x534440]
mov word [ebp - 0x14], ax
mov al, byte [0x534442]
push edi
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x30]
push esi
push eax
movups xmmword [ebp - 0x30], xmm0
lea eax, [ebp - 0x1940]
movq xmm0, qword [0x534434]
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0044f060
mov al, byte [ebp - 0x1930]
add esp, 0x10
mov byte [ebp - 4], 0xc
test al, al
je 0x450ff8
mov eax, dword [ebp - 0x193c]
test eax, eax
je 0x450fbf
push eax
lea ecx, [ebp - 0x1964]
call fcn.0044edb0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x194c]
mov eax, dword [ebp - 0x1950]
sub ecx, eax
mov edx, dword [ebp - 0x1960]
dec eax
push dword [ebp - 0x1968]
add ecx, eax
mov eax, dword [ebp - 0x195c]
sub eax, edx
dec eax
add eax, edx
push eax
push edx
push ecx
lea ecx, [ebp - 0x1950]
call fcn.0044f2c0
lea ecx, [ebp - 0x1964]
call fcn.0044ef00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1940]
mov dword [ebp - method.AppletParameter.virtual_0], vtable.AppletParameter.0
call fcn.0044ef00
mov edx, dword [ebp - 0x1910]
mov ecx, dword [ebp - 0x191c]
inc ecx
mov dword [ebp - 0x191c], ecx
mov eax, dword [edx + 8]
cmp ecx, eax
jb 0x450e08
jmp 0x451018
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1940]
mov byte [ebp - 0x1909], 0
mov dword [ebp - method.AppletParameter.virtual_0], vtable.AppletParameter.0
call fcn.0044ef00
lea ecx, [ebp - 0x1970]
call fcn.00451410
cmp byte [ebp - 0x1909], 0
jne 0x451076
mov ecx, dword [ebp - 0x1918]
xor esi, esi
mov edi, 0xb8
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1910], eax
mov ecx, dword [eax + 4]
lea eax, [esi + str._HTML__n___HEAD__TITLE_TightVNC_desktop__TITLE___HEAD__n___BODY__n_____H1_Bad_Parameters__H1__n____The_sequence_of_applet_parameters_specified_within_the_URL_is_invalid._n____BODY__n__HTML__n]
push edi
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
add esi, eax
sub edi, eax
mov eax, dword [ebp - 0x1910]
cmp esi, 0xb8
jb 0x451042
lea ecx, [ebp - 0x1954]
call fcn.0044ef00
jmp 0x451317
lea ecx, [ebp - 0x1964]
call fcn.0044ed20
mov dword [ebp - 0x24], vtable.StringStorage.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xf
push eax
push 0x10
mov ecx, eax
call fcn.00403af0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4ca774
push ecx
call fcn.0049e720
add esp, 0xc
lea eax, [ebp - 0x1910]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1910], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x451101
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
call fcn.00403860
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x193c]
call fcn.0044ee50
mov byte [ebp - 4], 0x11
mov ecx, 0x555558
mov eax, dword [ebp - 0x1950]
mov dword [ebp - 0x1910], eax
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 4]
mov esi, dword [0x558fbc]
mov byte [ebp - 4], 0x12
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
lea edi, [esi + 0xdc]
mov byte [ebp - 4], 0x11
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esi + 0x30]
mov byte [ebp - 4], 0x13
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x1964]
push dword [ebp - 0x1910]
push esi
push dword [ebp - 0x1938]
push str._HTML__n___HEAD__TITLE_TightVNC_desktop___.256s___TITLE___HEAD__n___BODY__n_____APPLET_ARCHIVE_tightvnc_jviewer.jar__CODE_com.glavsoft.viewer.Viewer__WIDTH1_HEIGHT1__n_______PARAM_NAME_PORT__VALUE__d___n_______PARAM_NAME_OpenNewWindow__VALUE_YES___n_.1024s______APPLET__BR__n_____A_HREF_http:__www.tightvnc.com___www.TightVNC.com__A__n____BODY__n__HTML__n
push eax
call fcn.0044f060
mov ecx, dword [ebp - 0x1960]
add esp, 0x14
mov eax, dword [ebp - 0x195c]
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x1910], ecx
mov ecx, dword [ebp - 0x1918]
add eax, 0xffffffff
mov dword [ebp - 0x191c], eax
mov edi, eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x1918], ecx
je 0x4511e6
nop word [eax + eax]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp - 0x1910]
add eax, esi
push edi
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1918]
add esi, eax
sub edi, eax
cmp esi, dword [ebp - 0x191c]
jb 0x4511c0
lea ecx, [ebp - 0x193c]
call fcn.0044ef00
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.StringStorage.0
call fcn.004039c0
lea ecx, [ebp - 0x1964]
call fcn.0044ef00
lea ecx, [ebp - 0x1954]
call fcn.0044ef00
jmp 0x451317
mov ecx, str._tightvnc_jviewer.jar
lea eax, [ebp - 0x1100]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x451246
test dl, dl
je 0x451242
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x451246
add eax, 2
add ecx, 2
test dl, dl
jne 0x451226
xor eax, eax
jmp 0x45124b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x451299
lea ecx, [ebp - 0x1970]
call fcn.00451410
mov eax, dword [esi + 8]
mov edi, 0x55839
mov dword [ebp - 0x1910], eax
xor esi, esi
nop word [eax + eax]
mov ecx, dword [eax + 4]
lea eax, [esi + 0x4cb878]
push edi
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
add esi, eax
sub edi, eax
mov eax, dword [ebp - 0x1910]
cmp esi, 0x55839
jb 0x451270
jmp 0x451317
mov ecx, 0x2a
lea edi, [ebp - 0xfc]
mov esi, str.HTTP_1.0_404_Not_Found_r_n_r_n_HTML__n___HEAD__TITLE_404_Not_Found__TITLE___HEAD__n___BODY__n_____H1_Not_Found__H1__n____The_requested_file_could_not_be_found._n____BODY__n__HTML__n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0xfc]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4512b7
xor edi, edi
sub esi, ecx
mov eax, esi
mov dword [ebp - 0x1918], eax
je 0x451317
nop dword [eax]
mov ecx, dword [ebp - 0x1910]
push eax
lea eax, [ebp - 0xfc]
add eax, edi
mov ecx, dword [ecx + 4]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
sub dword [ebp - 0x1918], eax
add edi, eax
mov eax, dword [ebp - 0x1918]
cmp edi, esi
jb 0x4512d0
jmp 0x451317
mov ecx, dword [ebp - 0x1918]
push dword [ecx + 0x10]
push 0x5342f4
push dword [ecx + 0x1c]
call fcn.00405e60
add esp, 0xc
lea ecx, [ebp - 0x1928]
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
call fcn.004039c0
mov ecx, dword [ebp - 0x197c]
mov dword [ebp - method.AnsiStringStorage.virtual_0], vtable.AnsiStringStorage.0
test ecx, ecx
je 0x45138a
mov edx, dword [ebp - 0x1974]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x451362
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4513bf
push edx
push ecx
call fcn.0049b534
add esp, 8
mov dword [ebp - 0x197c], 0
mov dword [ebp - 0x1978], 0
mov dword [ebp - 0x1974], 0
mov ecx, dword [ebp - 0x100]
mov dword [ebp - method.HttpRequest.virtual_0], vtable.HttpRequest.0
test ecx, ecx
je 0x4513a4
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049afeb
mov esp, ebp
pop ebp
ret
call fcn.004a25eb
int3