Function at 0x45a2f8
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 [0x5a8564]
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 0x45a336
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
jmp 0x45a342
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.00429420
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x45a34d
mov eax, dword [ebx + 4]
test eax, eax
je 0x45a9c9
cmp eax, 2
jb 0x45a3cf
mov ecx, ebx
call fcn.0045ae12
cmp word [eax], 0x22
jne 0x45a374
mov ecx, ebx
call fcn.004261d0
cmp word [eax], 0x22
je 0x45a38e
mov ecx, ebx
call fcn.0045ae12
cmp word [eax], 0x27
jne 0x45a3cf
mov ecx, ebx
call fcn.004261d0
cmp word [eax], 0x27
jne 0x45a3cf
mov edi, ebx
movzx ebx, byte [ebx + 0xb]
test bl, bl
js 0x45a3a3
mov esi, edi
test ebx, ebx
jne 0x45a3b0
jmp 0x45adef
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x45adef
mov esi, dword [edi]
lea eax, [ebx - 1]
mov ecx, edi
push eax
call fcn.0045ae48
mov word [esi + ebx*2 - 2], 0
mov ecx, edi
push 1
push 0
call fcn.00426dc2
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 0x45a3fb
push 0x5697bf
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 + 0x5697f0]
test esi, esi
je 0x45add1
push esi
call fcn.0054c5c4
add esp, 4
movzx edx, byte [ebx + 0xb]
mov ecx, ebx
test dl, dl
jns 0x45a427
mov ecx, dword [ebx]
test eax, eax
mov dword [ebp - 0x234], edi
je 0x45a50e
mov dword [ebp - 0x248], esi
test dl, dl
jns 0x45a442
mov edx, dword [ebx + 4]
cmp edx, eax
jl 0x45a6ac
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 0x45a6ac
inc edx
xor edi, edi
mov esi, dword [ebp - 0x230]
cmp word [esi + edi], cx
je 0x45a49b
add edi, 2
dec edx
cmp eax, edx
jne 0x45a482
jmp 0x45a6ac
mov esi, dword [ebp - 0x230]
add esi, edi
je 0x45a6ac
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 0x45a4d6
inc edx
cmp eax, edx
mov esi, ecx
jne 0x45a4b8
jmp 0x45a615
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 0x45a474
jmp 0x45a6ac
mov dword [ebp - 0x22c], 0
push esi
call fcn.0054c5c4
add esp, 4
mov dword [ebp - 0x230], eax
push 0x208
push 0xff
lea esi, [ebp - 0x218]
push esi
call fcn.00536680
add esp, 0xc
mov edi, dword [edi*8 + 0x5697f4]
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 0x45a568
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.00401ce0
movzx eax, byte [ebp - 0x219]
test al, al
jns 0x45a59a
mov eax, dword [ebp - 0x220]
test eax, eax
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x230]
je 0x45a66b
lea ecx, [ebp - 0x224]
call fcn.004261d0
cmp word [eax], 0x5c
jne 0x45a66b
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x45a5ce
mov eax, dword [ebx + 4]
lea edx, [edi + esi]
cmp eax, edx
jbe 0x45a66b
mov ecx, ebx
push edx
call fcn.00420060
cmp word [eax], 0x5c
jne 0x45a66b
movzx eax, byte [ebp - 0x219]
test al, al
js 0x45a64a
test eax, eax
je 0x45adef
cmp al, 6
jae 0x45ae00
dec eax
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x224]
jmp 0x45a665
cmp esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x22c]
je 0x45a6ac
sub esi, eax
cmp esi, 0xfffffffe
je 0x45a6ac
sar esi, 1
mov dword [ebp - 0x22c], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x248]
jmp 0x45a518
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x45adef
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.00428e6a
cmp byte [ebp - 0x219], 0
jns 0x45a6ac
push dword [ebp - 0x224]
call fcn.005327b0
add esp, 4
mov edi, dword [ebp - 0x234]
inc edi
cmp edi, 7
mov ebx, dword [ebp + 8]
jne 0x45a403
push 0x567798
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x248], eax
je 0x45a6e2
push 0x56982a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x45a6e5
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 0x45a712
mov dl, byte [ebp - 0x230]
jmp 0x45a7b7
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 0x45a7a4
xor eax, eax
mov edi, dword [ebp - 0x234]
mov dl, byte [ebp - 0x230]
cmp word [esi + eax], 0x24
je 0x45a763
add eax, 2
dec ebx
jne 0x45a754
jmp 0x45a7b1
mov ebx, esi
add ebx, eax
je 0x45a7b1
mov edx, 0xffffffe8
movzx edi, word [ebx + edx + 0x18]
cmp di, word [edx + 0x569850]
jne 0x45a786
add edx, 2
jne 0x45a76e
jmp 0x45aa5e
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 0x45a741
mov esi, edi
mov edi, dword [ebp - 0x234]
jmp 0x45a707
mov esi, dword [ebp - 0x22c]
test dl, dl
cmovns esi, dword [ebp + 8]
cmovs ecx, edi
cmp ecx, 0xf
jge 0x45a84b
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 0x45a7eb
push 0x569874
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 0x45a819
push 0x5698ac
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 0x45a8c9
mov ebx, dword [ebp + 8]
jmp 0x45a975
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 0x45a7c9
xor edx, edx
cmp word [edi + edx], 0x24
je 0x45a879
add edx, 2
dec ecx
jne 0x45a867
jmp 0x45a7c9
mov ebx, edi
add ebx, edx
je 0x45a7c9
mov dword [ebp - 0x234], eax
mov eax, 0xffffffe2
movzx ecx, word [ebx + eax + 0x1e]
cmp cx, word [eax + 0x569870]
jne 0x45a8a6
add eax, 2
jne 0x45a88e
jmp 0x45ab5b
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 0x45a85c
jmp 0x45a7c9
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 0x45a843
xor eax, eax
cmp word [ebx + eax], 0x24
je 0x45a91a
add eax, 2
dec edi
jne 0x45a90b
jmp 0x45a96c
mov edi, ebx
add edi, eax
je 0x45a96c
mov edx, 0xffffffe4
movzx esi, word [edi + edx + 0x1c]
cmp si, word [edx + 0x5698d6]
jne 0x45a93d
add edx, 2
jne 0x45a925
jmp 0x45ac19
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 0x45a900
jmp 0x45a843
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
test dl, dl
cmovns eax, ebx
cmovs ecx, esi
cmp ecx, 0xf
jge 0x45a9e0
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x45a993
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x230]
test eax, eax
mov esi, dword [ebp - 0x258]
je 0x45a9aa
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x248]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x45a9be
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x45a9c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
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 0x45a982
xor edx, edx
cmp word [ebx + edx], 0x24
je 0x45aa0a
add edx, 2
dec ecx
jne 0x45a9f8
jmp 0x45a982
mov edi, ebx
add edi, edx
je 0x45a982
mov dword [ebp - 0x238], esi
mov esi, eax
mov eax, 0xffffffe2
movzx ecx, word [edi + eax + 0x1e]
cmp cx, word [eax + 0x5698f6]
jne 0x45aa39
add eax, 2
jne 0x45aa21
jmp 0x45acf9
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 0x45a9f1
jmp 0x45a982
cmp ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x230]
je 0x45adbb
sub ebx, dword [ebp - 0x23c]
cmp ebx, 0xfffffffe
mov edi, dword [ebp - 0x234]
je 0x45a7b7
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 0x45ab48
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.005327e3
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.00401ce0
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x45ab17
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.00428e6a
cmp byte [ebp - 0x20d], 0
jns 0x45ab3b
push dword [ebp - 0x218]
call fcn.005327b0
add esp, 4
test edi, edi
je 0x45ab48
push edi
call fcn.005327ec
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 0x45a7b7
cmp ebx, dword [ebp - 0x234]
je 0x45a7c9
sub ebx, esi
cmp ebx, 0xfffffffe
je 0x45a7c9
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 0x45a7c9
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.005327e3
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.00401ce0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x45abdf
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.00428e6a
cmp byte [ebp - 0x20d], 0
jns 0x45ac03
push dword [ebp - 0x218]
call fcn.005327b0
add esp, 4
test esi, esi
je 0x45a7c9
push esi
call fcn.005327ec
add esp, 4
jmp 0x45a7c9
cmp edi, dword [ebp - 0x250]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
mov dl, byte [ebp - 0x22c]
je 0x45adc6
sub edi, dword [ebp - 0x24c]
cmp edi, 0xfffffffe
mov esi, dword [ebp - 0x238]
je 0x45a975
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 0x45ace9
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.00401ce0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x45acb1
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.00428e6a
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x45ace9
push dword [ebp - 0x218]
call fcn.005327b0
add esp, 4
mov dl, byte [ebx + 0xb]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
movzx ecx, dl
jmp 0x45a975
cmp edi, dword [ebp - 0x238]
je 0x45a982
sub edi, esi
cmp edi, 0xfffffffe
je 0x45a982
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 0x45a982
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.00401ce0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x45ad79
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.00428e6a
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x45a982
push dword [ebp - 0x218]
call fcn.005327b0
add esp, 4
jmp 0x45a982
mov edi, dword [ebp - 0x234]
jmp 0x45a7b7
mov esi, dword [ebp - 0x238]
jmp 0x45a975
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.00404fa4
push str.string::pop_back__:_string_is_already_empty
push str._empty__
push 0xc07
jmp 0x45ade0
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6c6
jmp 0x45ade0