Function at 0x407277
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58359b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c8
mov eax, dword [0x5f72d8]
xor eax, esp
mov dword [esp + 0x9c0], eax
push ebx
push esi
push edi
mov eax, dword [0x5f72d8]
xor eax, esp
push eax
lea eax, [esp + 0x9d8]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00555d74
mov esi, 0x6094c8
call fcn.004078f5
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x48
push 0x5a
push eax
mov dword [esp + 0x20], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push 8
call ebx
push 0x48
push 0x5a
push dword [esp + 0x1c]
neg eax
mov dword [esp + 0x24], eax
call esi
push eax
push 9
call ebx
push 0x48
push 0x5a
push dword [esp + 0x1c]
call esi
push eax
push 0xa
call ebx
push 0x48
push 0x5a
push dword [esp + 0x1c]
call esi
push eax
push 0xb
call ebx
push dword [esp + 0x14]
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x60a1f0]
cmp eax, ebx
jne 0x407339
mov eax, dword [esp + 0x18]
push 0x609fec
push ebx
mov esi, 0x190
push esi
push eax
lea eax, [edi + 0x914]
push eax
mov al, 0x20
xor cl, cl
call fcn.00409157
mov eax, dword [0x60a1ec]
cmp eax, ebx
jne 0x407363
mov eax, dword [esp + 0x18]
push 0x609dec
push ebx
push esi
push eax
lea eax, [edi + 0x91c]
push eax
mov al, 0x20
xor cl, cl
call fcn.00409157
mov eax, dword [edi + 0x48]
push 0x5aec30
mov dword [edi + 0x8bc], ebx
mov esi, 0x200
lea ebx, [edi + 0x4b4]
push esi
push ebx
mov dword [esp + 0x20], eax
call fcn.0045eae0
add esp, 0xc
push str._txt
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
test eax, eax
je 0x4073eb
push esi
push ebx
push str._txt_s
push eax
mov dword [edi + 0x8b8], 1
call fcn.0055b6f6
push str..txt
push esi
push ebx
call fcn.0055a9ea
add esp, 0x1c
mov dword [edi + 0x8bc], 1
jmp 0x40762c
push str._html
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
test eax, eax
je 0x407434
push esi
push ebx
push str._html_s
push eax
mov dword [edi + 0x8b8], 1
call fcn.0055b6f6
push str..htm
push esi
push ebx
call fcn.0055a9ea
add esp, 0x1c
mov dword [edi + 0x8bc], 2
jmp 0x40762c
push str._console
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
test eax, eax
je 0x407461
mov dword [edi + 0x8b8], 1
mov dword [edi + 0x8bc], 3
jmp 0x40762c
push str._bench
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
test eax, eax
je 0x40748e
mov dword [edi + 0x8b8], 1
mov dword [edi + 0x8bc], 6
jmp 0x40762c
push str._jsontxt
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
test eax, eax
je 0x407576
push esi
push ebx
push str._jsontxt_s
push eax
mov dword [edi + 0x8b8], 1
call fcn.0055b6f6
add esp, 0x10
test eax, eax
jge 0x4074d4
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
push str.__04d_02d_02d__02d_02d_02d
lea eax, [esp + 0x1e8]
push esi
push eax
call fcn.0045eae0
add esp, 0x24
lea eax, [esp + 0x1cc]
push eax
push esi
push ebx
call fcn.0055a9ea
add esp, 0xc
push 0x400
call fcn.0054996d
pop ecx
push ebx
push esi
push eax
mov dword [edi + 0x8b4], eax
call fcn.0055b4d9
add esp, 0xc
push str..json
push esi
push ebx
call fcn.0055a9ea
add esp, 0xc
push str..txt
push esi
push dword [edi + 0x8b4]
call fcn.0055a9ea
mov dword [edi + 0x8bc], 8
jmp 0x407629
push str._json
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
test eax, eax
je 0x40762c
push esi
push ebx
push str._json_s
push eax
mov dword [edi + 0x8b8], 1
call fcn.0055b6f6
add esp, 0x10
test eax, eax
jge 0x4075bc
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x28]
push eax
movzx eax, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push eax
push str.__04d_02d_02d__02d_02d_02d
lea eax, [esp + 0x5e8]
push esi
push eax
call fcn.0045eae0
add esp, 0x24
lea eax, [esp + 0x5cc]
push eax
push esi
push ebx
call fcn.0055a9ea
add esp, 0xc
push str..json
push esi
push ebx
call fcn.0055a9ea
mov dword [edi + 0x8bc], 7
add esp, 0xc
push str._core
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
xor ebx, ebx
push 4
pop esi
cmp eax, ebx
je 0x40765b
push esi
lea ecx, [edi + 0x8c0]
push ecx
push str._core_d
push eax
call fcn.0055b6f6
add esp, 0x10
push str._coremask
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
cmp eax, ebx
je 0x407695
push esi
lea ecx, [edi + 0x8c4]
push ecx
push str._coremask_X
push eax
call fcn.0055b6f6
add esp, 0x10
mov dword [edi + 0x8b8], 1
mov dword [edi + 0x8bc], esi
push str._removeservice
push dword [esp + 0x18]
call fcn.0055b478
pop ecx
pop ecx
cmp eax, ebx
je 0x4076bd
mov dword [edi + 0x8b8], 1
mov dword [edi + 0x8bc], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [edi + 0xd80], eax
cmp dword [edi + 0x8b8], ebx
jne 0x407742
call fcn.0042a085
mov ecx, edi
call fcn.004091ba
mov ecx, dword [0x6094a0]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [0x6094a0]
cmp ecx, ebx
je 0x407700
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov esi, edi
mov dword [0x6094a0], ebx
call fcn.00409972
lea eax, [esp + 0x3c]
push eax
call fcn.00409e68
lea eax, [esp + 0x3c]
mov dword [esp + 0x9e0], ebx
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0054c61e
or dword [esp + 0x9e0], 0xffffffff
lea eax, [esp + 0x3c]
push eax
call fcn.00407770
xor eax, eax
jmp 0x40774c
mov ecx, edi
call fcn.004091ba
xor eax, eax
inc eax
mov ecx, dword [esp + 0x9d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9c0]
xor ecx, esp
call fcn.0055a90d
mov esp, ebp
pop ebp
ret