Function at 0x4042f0
Capabilities:
Get hostname

Disassembly:
mov ecx, dword [0x41c1bc]
mov eax, dword [0x4236c0]
sub esp, 0x414
inc ecx
mov dword [0x41c1bc], ecx
push ebx
push esi
mov esi, 1
push edi
cmp eax, esi
jne 0x4043d9
mov ecx, 0x41e348
call fcn.0040acf0
mov eax, dword [0x4250c0]
mov dword [eax + 0x214c], esi
mov ecx, dword [0x4250c0]
mov dword [ecx + 0x104c], esi
mov edx, dword [0x4250c0]
xor ecx, ecx
mov dword [edx + 0x21dc], ecx
mov eax, dword [0x4250c0]
mov dword [esp + 0x14], ecx
mov dword [eax + 0x106c], ecx
mov edx, dword [0x4250c0]
mov eax, dword [0x41e34c]
mov dword [edx + 0x2160], eax
mov eax, dword [0x4250c0]
mov edx, dword [eax + 0x2160]
mov eax, dword [eax + 0x106c]
mov dword [esp + 0x10], edx
fild qword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
fidiv dword [esp + 0x10]
fmul dword [0x4153a4]
call fcn.0040c150
mov ecx, dword [0x41c258]
mov dword [ecx*4 + 0x41e448], eax
shl ecx, 4
add ecx, 0x41f720
push ecx
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [0x41c258]
inc eax
cmp eax, 0x3e8
mov dword [0x41c258], eax
jl 0x404779
mov dword [0x41c258], 0
jmp 0x404779
push 0x41c1a4
call sub.kernel32.dll_GetSystemPowerStatus
test eax, eax
jne 0x40440a
mov ecx, dword [esp + 0x424]
push eax
push 0x4180d4
push 0x4189c8
push ecx
call dword [sym.imp.user32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov eax, dword [0x4236c0]
xor edi, edi
cmp eax, edi
jne 0x404428
mov edx, dword [esp + 0x424]
mov ecx, dword [0x4250c0]
push edx
call fcn.00401610
mov eax, dword [0x425200]
push ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [eax + 4], esi
mov ecx, dword [0x4250c0]
mov eax, dword [0x425200]
mov ebx, 0x2160
mov edx, dword [ecx + 8]
mov ebp, 0x10
mov dword [eax + 0xc], edx
mov ecx, dword [0x4250c0]
mov eax, dword [0x425200]
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
mov ecx, dword [0x4250c0]
mov edx, dword [0x425200]
add ecx, 0x21ec
add edx, 0x920
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [0x4250c0]
mov ecx, dword [0x425200]
mov eax, dword [edx + ebp + 0x192c]
mov dword [ecx + ebp], eax
mov eax, dword [0x41f704]
mov edx, dword [0x425200]
test eax, eax
je 0x4044de
mov edi, 0x4182f0
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x4182f0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
dec ecx
lea edi, [eax + edx + 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4044fa
mov ecx, dword [0x4250c0]
mov eax, dword [esp + 0x1c]
lea esi, [eax + ecx + 0x194c]
lea edi, [eax + edx + 0x20]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4250c0]
mov edx, dword [0x425200]
mov ecx, dword [eax + ebp + 0x103c]
mov eax, dword [esp + 0x14]
mov dword [edx + ebp + 0x860], ecx
mov ecx, dword [0x4250c0]
mov edx, dword [0x425200]
lea esi, [eax + ecx + 0x105c]
mov ecx, 9
lea edi, [eax + edx + 0x880]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4250c0]
mov edx, dword [0x425200]
mov ecx, dword [eax + ebp + 0x213c]
mov dword [edx + ebp + 0x810], ecx
mov eax, dword [0x4250c0]
mov edx, dword [0x425200]
lea ecx, [ebx + eax - 4]
lea eax, [ebx + edx - 0x1930]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [0x4250c0]
mov ecx, dword [0x425200]
mov eax, dword [edx + ebp + 0x218c]
mov dword [ecx + ebp + 0x900], eax
mov dl, byte [0x4182ec]
cmp dl, byte [0x41c1a4]
je 0x4045cd
mov eax, dword [0x4250c0]
push 0x425214
mov ecx, dword [ebx + eax]
mov dword [eax + ebp + 0x21e8], ecx
mov dl, byte [0x41c1a4]
mov byte [0x4182ec], dl
call fcn.0040c117
add esp, 4
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add ebp, 4
add esi, 0x200
add edx, 0x24
add ebx, 0x10
cmp ebp, 0x20
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edx
jl 0x40448d
mov ecx, dword [0x425200]
call fcn.00406ae0
mov cl, byte [0x41c1a6]
pop ebp
cmp cl, 0x64
jbe 0x404614
mov cl, 0x64
mov byte [0x41c1a6], cl
mov eax, dword [0x41c1a8]
xor edi, edi
cmp eax, edi
jle 0x40463b
xor edx, edx
mov dword [esp + 0x18], eax
mov dl, cl
mov dword [esp + 0x1c], edi
mov esi, edx
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
fidiv dword [esp + 0x18]
jmp 0x40467b
call fcn.0040c177
mov edx, dword [0x41f710]
xor ecx, ecx
mov cl, byte [0x41c1a6]
mov esi, ecx
mov ecx, dword [0x41c24c]
sub edx, esi
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [0x41c1a8]
fild dword [esp + 0x18]
fmul dword [0x4153a8]
fdivp st(1)
fstp dword [0x41e168]
cmp eax, edi
jg 0x4046b4
fld dword [0x41e168]
fcomp qword [0x4153e0]
fnstsw ax
and eax, 0x4100
jne 0x4046b4
fld dword [0x4153dc]
fdiv dword [0x41e168]
fimul dword [esp + 0x10]
call fcn.0040c150
mov dword [0x41c1a8], eax
cmp dword [0x41c1ac], edi
jg 0x4046ed
fld dword [0x41e168]
fcomp qword [0x4153e0]
fnstsw ax
and eax, 0x4100
jne 0x4046ed
fld dword [0x4153dc]
fdiv dword [0x41e168]
fmul dword [0x4153a4]
call fcn.0040c150
mov dword [0x41c1ac], eax
fld dword [0x41e168]
fcomp qword [0x4153e0]
fnstsw ax
and eax, 0x4100
jne 0x404722
fld dword [0x4153dc]
fdiv dword [0x41e168]
fmul dword [0x4153a4]
fmul dword [0x4153d8]
fstp dword [0x4251f4]
jmp 0x40472c
mov dword [0x4251f4], 0
mov eax, dword [0x41c258]
mov dword [eax*4 + 0x41e448], esi
shl eax, 4
add eax, 0x41f720
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [0x41c258]
mov ecx, dword [0x41c1a8]
fld dword [0x4251f4]
mov dword [eax*4 + 0x41b040], ecx
fstp dword [eax*4 + 0x41cea0]
inc eax
cmp eax, 0x3e8
mov dword [0x41c258], eax
jl 0x404779
mov dword [0x41c258], edi
mov esi, dword [esp + 0x424]
push esi
call fcn.00405760
add esp, 4
push 0x3f1
push esi
call dword [sym.imp.user32.dll_GetDlgItem]
push eax
call fcn.00404dc0
mov al, byte [0x4235ac]
add esp, 4
cmp al, 1
jne 0x4047b2
push 1
push esi
call fcn.00405b10
add esp, 8
mov bl, byte [0x41c1a6]
mov cx, word [0x4235b0]
xor ax, ax
mov al, bl
cmp ax, cx
jae 0x4047fc
mov dl, byte [0x425208]
test dl, dl
jne 0x4047f9
mov edx, dword [0x4250b4]
push 0x20000
push edx
push 0x4235b2
call dword [sym.imp.winmm.dll_PlaySound]
mov bl, byte [0x41c1a6]
mov byte [0x425208], 1
jmp 0x404805
cmp ax, cx
jbe 0x404805
mov byte [0x425208], 0
mov al, byte [0x4236d9]
cmp al, 1
mov eax, dword [0x425060]
jne 0x4048b2
xor ecx, ecx
mov cl, bl
cmp ecx, eax
jge 0x4048b2
mov cl, byte [0x425209]
test cl, cl
jne 0x4048b2
lea edx, [esp + 0x10]
lea eax, [esp + 0x120]
push edx
push eax
mov byte [0x425209], 1
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x128], 0
call dword [sym.imp.kernel32.dll_GetComputerNameA]
test eax, eax
jne 0x404874
mov cl, byte [eax + str.UNKNOWN]
mov byte [esp + eax + 0x120], cl
inc eax
test cl, cl
jne 0x404862
mov ecx, dword [0x425060]
lea edx, [esp + 0x120]
push ecx
push edx
lea eax, [esp + 0x228]
push 0x418958
push eax
call fcn.0040b8dc
lea ecx, [esp + 0x230]
push ecx
push 0x418928
call fcn.004062b0
mov bl, byte [0x41c1a6]
add esp, 0x18
jmp 0x4048c1
xor edx, edx
mov dl, bl
cmp edx, eax
jle 0x4048c1
mov byte [0x425209], 0
mov al, byte [0x41c1a4]
mov byte [esp + 0xf], 0
cmp al, 0xff
jne 0x4048fc
lea eax, [esp + 0x20]
push 0x41801c
push eax
call fcn.0040b8dc
mov edx, dword [0x41c250]
lea ecx, [esp + 0x28]
push ecx
push 0x3039
push edx
call fcn.004061c0
add esp, 0x14
jmp 0x4049e6
cmp al, 1
je 0x4049a4
cmp dword [0x41c1ac], 0xffffe380
jae 0x40495e
mov esi, dword [0x41c1a8]
mov eax, 0x91a2b3c5
mul esi
mov ecx, edx
shr ecx, 0xb
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
shl eax, 4
sub esi, eax
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push ecx
xor ecx, ecx
lea edx, [esp + 0x28]
mov cl, bl
push ecx
push str.BatteryMon__
push edx
call fcn.0040b8dc
add esp, 0x14
jmp 0x404975
xor eax, eax
lea ecx, [esp + 0x20]
mov al, bl
push eax
push 0x4188b8
push ecx
call fcn.0040b8dc
add esp, 0xc
mov eax, dword [0x41c250]
lea edx, [esp + 0x20]
push edx
push 0x3039
push eax
call fcn.004061c0
mov al, byte [0x42520b]
add esp, 0xc
test al, al
jne 0x40499b
mov byte [esp + 0xf], 1
mov byte [0x42520b], 1
jmp 0x4049e6
xor ecx, ecx
lea edx, [esp + 0x20]
mov cl, bl
push ecx
push 0x41889c
push edx
call fcn.0040b8dc
mov ecx, dword [0x41c250]
lea eax, [esp + 0x2c]
push eax
push 0x3039
push ecx
call fcn.004061c0
mov al, byte [0x42520b]
add esp, 0x18
cmp al, 1
jne 0x4049df
mov byte [esp + 0xf], 1
mov byte [0x42520b], 0
mov eax, dword [0x4182d8]
xor ecx, ecx
mov cl, byte [0x41c1a6]
xor dl, dl
lea esi, [eax - 0xa]
cmp ecx, esi
jge 0x404a12
cmp ecx, eax
jge 0x404a12
test eax, eax
jle 0x404a0d
sub eax, 0xa
mov dl, 1
cmp ecx, eax
jl 0x404a00
mov dword [0x4182d8], eax
lea esi, [eax + 0xa]
cmp ecx, esi
jle 0x404a37
cmp ecx, eax
jle 0x404a37
cmp eax, 0x64
jge 0x404a32
add eax, 0xa
mov dl, 1
cmp ecx, eax
jg 0x404a1d
mov dword [0x4182d8], eax
jmp 0x404a47
mov dword [0x4182d8], eax
cmp dl, 1
je 0x404a47
cmp byte [esp + 0xf], 1
jne case.0x404a65.11
cmp byte [0x425064], 1
jne case.0x404a65.11
cmp eax, 0x64
ja case.0x404a65.11
xor edx, edx
mov dl, byte [eax + 0x404d54]
jmp dword [edx*4 + 0x404d24]
cmp byte [0x41c1a4], 1
je 0x404a99
mov eax, dword [0x4250b0]
mov ecx, dword [0x41c250]
push eax
push 0x3039
push ecx
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov edx, dword [0x41dfd0]
mov eax, dword [0x41c250]
push edx
push 0x3039
push eax
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
cmp byte [0x41c1a4], 1
je 0x404ad1
mov ecx, dword [0x41bfe0]
jmp 0x404d03
mov eax, dword [0x425070]
mov ecx, dword [0x41c250]
push eax
push 0x3039
push ecx
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
cmp byte [0x41c1a4], 1
je 0x404b22
mov edx, dword [0x41c1a0]
mov eax, dword [0x41c250]
push edx
push 0x3039
push eax
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov ecx, dword [0x41b034]
jmp 0x404d03
cmp byte [0x41c1a4], 1
je 0x404b5a
mov eax, dword [0x41c07c]
mov ecx, dword [0x41c250]
push eax
push 0x3039
push ecx
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov edx, dword [0x41f4f8]
mov eax, dword [0x41c250]
push edx
push 0x3039
push eax
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
cmp byte [0x41c1a4], 1
je 0x404b92
mov ecx, dword [0x41e180]
jmp 0x404d03
mov eax, dword [0x41c23c]
mov ecx, dword [0x41c250]
push eax
push 0x3039
push ecx
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
cmp byte [0x41c1a4], 1
je 0x404be3
mov edx, dword [0x41e16c]
mov eax, dword [0x41c250]
push edx
push 0x3039
push eax
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov ecx, dword [0x41c284]
jmp 0x404d03
cmp byte [0x41c1a4], 1
je 0x404c1b
mov eax, dword [0x41e324]
mov ecx, dword [0x41c250]
push eax
push 0x3039
push ecx
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov edx, dword [0x41e284]
mov eax, dword [0x41c250]
push edx
push 0x3039
push eax
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
cmp byte [0x41c1a4], 1
je 0x404c53
mov ecx, dword [0x425074]
jmp 0x404d03
mov eax, dword [0x41f70c]
mov ecx, dword [0x41c250]
push eax
push 0x3039
push ecx
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
cmp byte [0x41c1a4], 1
je 0x404ca4
mov edx, dword [0x42506c]
mov eax, dword [0x41c250]
push edx
push 0x3039
push eax
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov ecx, dword [0x41bfe4]
jmp 0x404d03
cmp byte [0x41c1a4], 1
je 0x404cd9
mov eax, dword [0x41f714]
mov ecx, dword [0x41c250]
push eax
push 0x3039
push ecx
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov edx, dword [0x41e320]
mov eax, dword [0x41c250]
push edx
push 0x3039
push eax
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov ecx, dword [0x41c1c0]
mov edx, dword [0x41c250]
push ecx
push 0x3039
push edx
call fcn.00406180
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x414
ret