Function at 0x40a860
Capabilities:
Get hostname
Get session user name
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba2c
mov eax, dword fs:[0]
push eax
mov eax, 0x12bc
call fcn.0041a300
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3ff
xor edi, edi
lea eax, [ebp - 0xe3f]
push edi
push eax
mov ebx, ecx
mov byte [ebp - 0xe40], 0
call fcn.00419b60
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x117]
push edi
push ecx
mov byte [ebp - 0x118], 0
call fcn.00419b60
add esp, 0xc
push 0x103
lea edx, [ebp - 0x42f]
push edi
push edx
mov byte [ebp - 0x430], 0
call fcn.00419b60
lea eax, [ebx + 0x28d2]
lea edx, [ebp - 0x430]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a8f8
mov dword [ebp - 0x12ac], 0xf
mov dword [ebp - 0x12b0], edi
mov byte [ebp - 0x12c0], cl
push 0x103
lea eax, [ebp - 0x327]
push edi
mov dword [ebp - 4], edi
push eax
mov byte [ebp - 0x328], cl
call fcn.00419b60
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x123f]
push edi
push ecx
mov byte [ebp - 0x1240], 0
call fcn.00419b60
add esp, 0xc
push 0x103
lea edx, [ebp - 0x21f]
push edi
push edx
mov byte [ebp - 0x220], 0
call fcn.00419b60
add esp, 0xc
lea eax, [ebp - 0x12c8]
push eax
lea ecx, [ebp - 0x328]
push ecx
mov dword [ebp - 0x12c8], 0x104
mov dword [ebp - 0x12c4], 0x400
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [ebp - 0x12c4]
push edx
lea eax, [ebp - 0x1240]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea esi, [ebp - 0x220]
call fcn.0040ce30
lea ecx, [ebp - 0x126c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x1260]
movzx eax, word [ebp - 0x1262]
movzx ecx, word [ebp - 0x1264]
push edx
movzx edx, word [ebp - 0x1266]
push eax
movzx eax, word [ebp - 0x126a]
push ecx
movzx ecx, word [ebp - 0x126c]
push edx
push eax
push ecx
lea edx, [ebp - 0x118]
push str._04d__02d__02d__02d:_02d:_02d
push edx
call fcn.0041874b
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x1290], eax
mov dword [ebp - 0x1294], edi
mov word [ebp - 0x12a4], cx
xor edx, edx
mov dword [ebp - 0x1274], eax
mov dword [ebp - 0x1278], edi
mov word [ebp - 0x1288], dx
push str.MIXIN_TITLE_DISP_YES
push 0x442430
lea edi, [ebp - 0x12a4]
mov byte [ebp - 4], 2
call fcn.004011c0
push str.MIXIN_TITLE_DISP_NO
push 0x442430
lea edi, [ebp - 0x1288]
call fcn.004011c0
add esp, 0x30
cmp dword [ebx + 0x3c], 0
je 0x40aa82
cmp dword [ebp - 0x1274], 8
jb 0x40aa7a
mov eax, dword [ebp - 0x1288]
jmp 0x40aa97
lea eax, [ebp - 0x1288]
jmp 0x40aa97
cmp dword [ebp - 0x1290], 8
mov eax, dword [ebp - 0x12a4]
jae 0x40aa97
lea eax, [ebp - 0x12a4]
movzx ecx, word [ebx + 0x28]
movzx edx, word [ebx + 0x24]
push eax
mov eax, dword [ebx + 0x34]
push eax
movzx eax, word [ebx + 0x22]
push ecx
push edx
push eax
push str.MIXIN_TITLE_MIDEA_DISP_INFO
push 0x442430
mov edi, 0x43a754
call fcn.004011c0
mov eax, dword [0x43a754]
add esp, 0x1c
cmp dword [0x43a768], 8
jae 0x40aad2
mov eax, edi
lea edx, [ebp - 0xa40]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40aae0
push 0
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x1240]
push ecx
lea esi, [ebx + 0x29d6]
push esi
push 0
push 1
push 2
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0xe40]
push str.http:___s_secdoc.php_typelogoper_dresult_dcode_dp1_sp2_sp3_sp4_sp5_sp6_s
push eax
call fcn.0041874b
add esp, 0x30
lea ecx, [ebp - 0x12c0]
push ecx
lea ecx, [ebp - 0xe40]
call fcn.0040ada0
push 0x3ff
lea edx, [ebp - 0xa3f]
push 0
push edx
mov byte [ebp - 0xa40], 0
call fcn.00419b60
add esp, 0xc
push 0x103
lea eax, [ebp - 0x63f]
push 0
push eax
mov byte [ebp - 0x640], 0
call fcn.00419b60
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x537]
push 0
push ecx
mov byte [ebp - 0x538], 0
call fcn.00419b60
lea eax, [ebx + 0x28d2]
lea edx, [ebp - 0x538]
add esp, 0xc
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40abb0
mov dword [ebp - 0x1248], 0xf
mov dword [ebp - 0x124c], 0
mov byte [ebp - 0x125c], cl
mov byte [ebp - 4], 3
movzx edx, word [ebx + 0x2e]
movzx eax, word [ebx + 0x2c]
movzx ecx, word [ebx + 0x2a]
push edx
movzx edx, word [ebx + 0x28]
push eax
movzx eax, word [ebx + 0x24]
push ecx
movzx ecx, word [ebx + 0x22]
push edx
push eax
push ecx
lea edx, [ebp - 0x640]
push str._04d__02d__02d__02d:_02d:_02d
push edx
call fcn.0041874b
mov ecx, dword [ebx + 0x34]
lea eax, [ebp - 0x640]
push eax
push ecx
push esi
lea edx, [ebp - 0x538]
push edx
lea eax, [ebp - 0xa40]
push str.http:___s_secdoc.php_typeinfop1_sp2_dp3_s
push eax
call fcn.0041874b
add esp, 0x38
lea ecx, [ebp - 0x125c]
push ecx
lea ecx, [ebp - 0xa40]
call fcn.0040ada0
test eax, eax
jne 0x40ac4b
push 1
call fcn.00419271
mov eax, dword [ebp - 0x125c]
mov edi, 0x10
cmp dword [ebp - 0x1248], edi
jae 0x40ac64
lea eax, [ebp - 0x125c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x125c]
cmp dword [ebp - 0x1248], edi
jae 0x40ac7f
lea eax, [ebp - 0x125c]
lea esi, [ebx + 0x2f00]
push esi
push eax
call fcn.00417d10
mov ecx, str.remaining
mov edx, eax
call fcn.0040d600
mov eax, dword [ebp - 0x125c]
add esp, 4
cmp dword [ebp - 0x1248], edi
jae 0x40acaf
lea eax, [ebp - 0x125c]
lea edx, [ebx + 0x2f04]
push edx
push eax
call fcn.00417d10
mov ecx, str.not_expired
mov edx, eax
call fcn.0040d600
mov eax, dword [esi]
mov dword [ebx + 0x34], eax
add esp, 4
mov eax, 0x2efc
call fcn.0041a300
mov ecx, 0xbbf
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004071f0
add esp, 0x2efc
cmp dword [ebp - 0x1248], 0x10
jb 0x40ad08
mov ecx, dword [ebp - 0x125c]
push ecx
call fcn.0041866f
add esp, 4
mov ebx, 8
cmp dword [ebp - 0x1274], ebx
jb 0x40ad24
mov edx, dword [ebp - 0x1288]
push edx
call fcn.0041866f
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [ebp - 0x1274], esi
mov dword [ebp - 0x1278], edi
mov word [ebp - 0x1288], ax
cmp dword [ebp - 0x1290], ebx
jb 0x40ad57
mov ecx, dword [ebp - 0x12a4]
push ecx
call fcn.0041866f
add esp, 4
xor edx, edx
cmp dword [ebp - 0x12ac], 0x10
mov dword [ebp - 0x1290], esi
mov dword [ebp - 0x1294], edi
mov word [ebp - 0x12a4], dx
jb 0x40ad84
mov eax, dword [ebp - 0x12c0]
push eax
call fcn.0041866f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret