Function at 0x4092f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e708
mov eax, dword fs:[0]
push eax
sub esp, 0x5a0
mov eax, dword [0x43a204]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4ac], ecx
cmp dword [ecx + 0x54], 0
mov dword [ebp - 0x4b0], ecx
jne 0x409c76
push dword [ecx + 4]
lea ecx, [ebp - 0x498]
push str.CNS_Files__.cns_
push 6
push 0
push 0x430204
push 1
call fcn.00402ad0
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x498]
call fcn.004053d0
cmp eax, 1
jne 0x409c66
mov byte [ebp - 0x4a5], 0
mov dword [ebp - 0x4fc], 0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 0
mov dword [ebp - 0x4f0], 0
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4e8], 0
mov dword [ebp - 0x4e4], 0
mov dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4dc], 0
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x4c4], 0
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 6
push 0x43020c
push eax
call fcn.0041bd6f
mov ebx, eax
add esp, 8
mov dword [ebp - 0x4a4], ebx
test ebx, ebx
je 0x409b9f
push ebx
mov byte [ebp - 4], 7
call fcn.00404790
add esp, 4
test al, al
je 0x409c96
push ebx
push 4
lea eax, [ebp - 0x508]
push 1
push eax
call fcn.0041e5a5
add esp, 0x10
cmp eax, 4
jne 0x409e22
lea eax, [ebp - 0x50c]
push eax
push ebx
call fcn.00401740
add esp, 8
test al, al
je 0x409e22
lea eax, [ebp - 0x500]
push eax
push ebx
call fcn.00401740
add esp, 8
test al, al
je 0x409e22
lea eax, [ebp - 0x504]
push eax
push ebx
call fcn.00401740
add esp, 8
test al, al
je 0x409e22
push ebx
push 1
lea eax, [ebp - 0x49d]
push 1
push eax
call fcn.0041e5a5
add esp, 0x10
cmp eax, 1
jne 0x409e22
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0
push eax
push ebx
call fcn.00401740
add esp, 8
test al, al
je 0x409e01
mov eax, dword [ebp - 0x49c]
test eax, eax
jle 0x409e01
lea ecx, [ebp - 0x4bc]
push ecx
push eax
call fcn.00402680
mov eax, dword [ebp - 0x49c]
push ebx
shl eax, 3
push eax
push 1
push dword [ebp - 0x4bc]
call fcn.0041e5a5
mov ecx, dword [ebp - 0x49c]
add esp, 0x10
shl ecx, 3
cmp ecx, eax
jne 0x409cb7
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0
push eax
push ebx
call fcn.00401740
add esp, 8
test al, al
je 0x409de0
mov eax, dword [ebp - 0x49c]
test eax, eax
jle 0x409de0
lea ecx, [ebp - 0x4c8]
push ecx
push eax
call fcn.00402570
mov eax, dword [ebp - 0x49c]
push ebx
lea eax, [eax + eax*2]
shl eax, 2
push eax
push 1
push dword [ebp - 0x4c8]
call fcn.0041e5a5
mov ecx, dword [ebp - 0x49c]
add esp, 0x10
lea ecx, [ecx + ecx*2]
shl ecx, 2
cmp ecx, eax
jne 0x409cd8
mov eax, dword [ebp - 0x4b8]
lea ecx, [ebp - 0x4fc]
sub eax, dword [ebp - 0x4bc]
sar eax, 3
push ecx
push eax
call fcn.00401b20
mov esi, dword [ebp - 0x4b8]
sub esi, dword [ebp - 0x4bc]
push ebx
sar esi, 3
push esi
push 1
push dword [ebp - 0x4fc]
call fcn.0041e5a5
add esp, 0x10
cmp esi, eax
jne 0x409cf9
mov eax, dword [ebp - 0x4b8]
lea ecx, [ebp - 0x4f0]
sub eax, dword [ebp - 0x4bc]
sar eax, 3
push ecx
push eax
call fcn.00401c30
mov eax, dword [ebp - 0x4b8]
sub eax, dword [ebp - 0x4bc]
sar eax, 3
push ebx
lea esi, [eax*4]
push esi
push 1
push dword [ebp - 0x4f0]
call fcn.0041e5a5
add esp, 0x10
cmp esi, eax
jne 0x409d1a
mov ecx, dword [ebp - 0x4c4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x4c8]
imul ecx
lea ecx, [ebp - 0x4d4]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push ecx
push eax
call fcn.00402120
xor edi, edi
mov ecx, dword [ebp - 0x4c4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x4c8]
imul ecx
mov dword [ebp - 0x4d8], edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x409780
lea eax, [ebp - 0x49c]
push eax
push ebx
call fcn.00401740
add esp, 8
test al, al
je 0x409d5c
cmp dword [ebp - 0x49c], 0
jle 0x409d5c
mov edx, dword [ebp - 0x4b8]
lea ebx, [edi + edi*2]
mov ecx, dword [ebp - 0x4d4]
sub edx, dword [ebp - 0x4bc]
shl ebx, 2
add ecx, ebx
sar edx, 3
push ecx
push edx
call fcn.00402340
mov edx, dword [ebp - 0x49c]
xor esi, esi
mov eax, dword [ebp - 0x4b8]
sub eax, dword [ebp - 0x4bc]
sar eax, 3
cmp esi, eax
jge 0x40976e
mov eax, dword [ebp - 0x4d4]
lea edi, [esi + esi*4]
shl edi, 2
mov ecx, dword [eax + ebx]
add ecx, 8
add ecx, edi
push ecx
push edx
call fcn.00401c30
mov eax, dword [ebp - 0x4d4]
push dword [ebp - 0x4a4]
mov eax, dword [eax + ebx]
mov ecx, dword [eax + edi + 8]
mov eax, dword [ebp - 0x49c]
shl eax, 2
push eax
push 1
push ecx
call fcn.0041e5a5
mov edx, dword [ebp - 0x49c]
add esp, 0x10
lea ecx, [edx*4]
cmp ecx, eax
jne 0x409d3b
inc esi
jmp 0x409700
mov edi, dword [ebp - 0x4d8]
mov ebx, dword [ebp - 0x4a4]
inc edi
jmp 0x409685
cmp byte [ebp - 0x49d], 0
je 0x4097f2
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0
push eax
push ebx
call fcn.00401740
add esp, 8
test al, al
je 0x409d9e
mov eax, dword [ebp - 0x49c]
test eax, eax
jle 0x409d9e
lea ecx, [ebp - 0x4e4]
push ecx
push eax
call fcn.00401c30
mov eax, dword [ebp - 0x49c]
push ebx
shl eax, 2
push eax
push 1
push dword [ebp - 0x4e4]
call fcn.0041e5a5
mov ecx, dword [ebp - 0x49c]
add esp, 0x10
shl ecx, 2
cmp ecx, eax
jne 0x409d7d
push ebx
call fcn.00404790
add esp, 4
test al, al
je 0x409dbf
mov edi, dword [ebp - 0x4ac]
mov byte [ebp - 0x49d], 1
jmp 0x409836
push ebx
mov dword [ebp - 4], 6
call fcn.0041e289
add esp, 4
cmp byte [ebp - 0x49d], 0
jne 0x409873
push 0x30
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.Open_file_failed.
push dword [edi + 4]
call fcn.00404410
add esp, 0x10
jmp 0x409b9f
lea ebx, [edi + 0x4d0]
mov ecx, ebx
call fcn.00405de0
test eax, eax
je 0x4098a8
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
nop word [eax + eax]
push 0
push 0
push 0x1308
push dword [ebx]
call esi
mov ecx, ebx
call fcn.00405de0
test eax, eax
jne 0x409890
mov ecx, dword [edi + 0x5b4]
lea esi, [edi + 0x5b0]
sub ecx, dword [esi]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409909
xor ebx, ebx
xor edi, edi
nop dword [eax]
mov eax, dword [esi]
push dword [eax + ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 4]
lea ebx, [ebx + 0xd0]
sub ecx, dword [esi]
mov eax, 0x4ec4ec4f
imul ecx
inc edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4098d0
mov edi, dword [ebp - 0x4ac]
lea ebx, [edi + 0x4d0]
mov ecx, esi
call fcn.0040fee0
mov eax, dword [ebp - 0x500]
lea edx, [edi + 0x5bc]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 0x504]
mov dword [edi + 0x60], eax
mov eax, dword [ebp - 0x508]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x50c]
mov dword [edi + 0x68], eax
lea eax, [ebp - 0x4c8]
cmp edx, eax
je 0x409978
mov ecx, dword [edx]
mov eax, dword [ebp - 0x4c8]
mov dword [edx], eax
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x4c8], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 0x4c0], ecx
lea eax, [ebp - 0x4bc]
lea ecx, [edi + 0x5c8]
push eax
call fcn.004100b0
push 0
push 0
lea ecx, [edi + 0x4d4]
call fcn.00411af0
mov ecx, dword [edi + 0x5c0]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x5bc]
imul ecx
push esi
sar edx, 1
mov ecx, esi
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00401d50
mov ecx, dword [edi + 0x5c0]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x5bc]
imul ecx
mov dword [ebp - 0x4ac], 0
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409b5b
xor edx, edx
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x49c], edx
xor ecx, ecx
nop
push 0
push ecx
mov eax, esp
test ecx, ecx
push 0
mov ecx, 0x40000000
mov dword [eax], 0
mov eax, 0x50000000
cmovne eax, ecx
push eax
push 0
push ecx
mov eax, esp
mov dword [eax], 0
mov ecx, dword [esi]
push dword [ebx]
add ecx, edx
call fcn.004048d0
mov eax, dword [edi + 0x5cc]
sub eax, dword [edi + 0x5c8]
push dword [edi + 0x5c]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x49c]
add ecx, ebx
sar eax, 3
push eax
call fcn.00411af0
mov edx, dword [ebp - 0x4d4]
add ebx, 0x28
mov ecx, dword [esi]
add ebx, ecx
add edx, dword [ebp - 0x4a4]
cmp ebx, edx
je 0x409a8e
mov ecx, dword [ebx]
mov eax, dword [edx]
mov dword [ebx], eax
mov dword [edx], ecx
mov ecx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov dword [ebx + 4], eax
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 8]
mov eax, dword [edx + 8]
mov dword [ebx + 8], eax
mov dword [edx + 8], ecx
mov ecx, dword [esi]
add ecx, dword [ebp - 0x49c]
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x4fc]
push eax
call fcn.00412920
mov eax, dword [edi + 0x5bc]
mov ebx, dword [ebp - 0x4a4]
push dword [eax + ebx + 4]
lea eax, [ebp - 0x4d8]
push eax
call fcn.00405620
mov edx, eax
mov ecx, dword [edi + 0x5bc]
mov byte [ebp - 4], 9
movzx eax, word [ecx + ebx + 8]
push eax
push dword [edx]
lea eax, [ebp - 0x4b0]
push str._sms___hu
push eax
call fcn.00405740
add esp, 0x18
lea ebx, [edi + 0x4d0]
mov ecx, ebx
push dword [eax]
call fcn.00403c00
lea ecx, [ebp - 0x4b0]
call fcn.00402f30
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 6
call fcn.00402f30
mov ecx, dword [edi + 0x5c0]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x5bc]
inc dword [ebp - 0x4ac]
add dword [ebp - 0x49c], 0xd0
add dword [ebp - 0x4a4], 0xc
imul ecx
mov ecx, dword [ebp - 0x4ac]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x49c]
cmp ecx, eax
jb 0x409a00
mov ecx, dword [esi]
mov dword [edi + 0x5a4], ecx
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x4e4]
mov dword [edi + 0x5a8], ecx
cmp eax, dword [ebp - 0x4e0]
jne 0x409b86
mov byte [edi + 0x72], 0
jmp 0x409b96
push str.Temperature
mov ecx, ebx
call fcn.00403c00
mov byte [edi + 0x72], 1
push 1
mov ecx, edi
call fcn.0040f0a0
mov esi, dword [ebp - 0x4d4]
test esi, esi
je 0x409c2f
mov edi, dword [ebp - 0x4d0]
cmp esi, edi
je 0x409bcb
mov ecx, esi
call fcn.00403050
add esi, 0xc
cmp esi, edi
jne 0x409bb7
mov esi, dword [ebp - 0x4d4]
mov ecx, dword [ebp - 0x4cc]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x409c07
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e43
push ecx
push esi
call fcn.004135cf
add esp, 8
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
lea ecx, [ebp - 0x4bc]
call fcn.004030e0
lea ecx, [ebp - 0x4c8]
call fcn.0040fcb0
lea ecx, [ebp - 0x4e4]
call fcn.00402ff0
lea ecx, [ebp - 0x4f0]
call fcn.00402ff0
lea ecx, [ebp - 0x4fc]
call fcn.00402fa0
mov eax, dword [ebp - 0x484]
test eax, eax
je 0x409c76
push eax
call fcn.00413140
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413a6c
mov esp, ebp
pop ebp
ret 0x10
push 0x42fec6
lea ecx, [ebp - 0x51c]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x51c]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x528]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x528]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x534]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x534]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x540]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x540]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x54c]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x54c]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x558]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x558]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x564]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x564]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x570]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x570]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x57c]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x57c]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x588]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x588]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x594]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x594]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x5a0]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x5a0]
push eax
call fcn.00414bea
push 0x42fec6
lea ecx, [ebp - 0x5ac]
call fcn.00402e70
push 0x437e38
lea eax, [ebp - 0x5ac]
push eax
call fcn.00414bea
call fcn.00417569
int3