Function at 0x14000e530
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x370
mov rax, qword [0x140021220]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov dword [rsp + 0x1c0], VarUI4FromDisp
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000e58a
cmp dword [rsp + 0x1d0], 2
jne 0x14000e58a
cmp dword [rsp + 0x1c4], 5
jb 0x14000e58a
mov dword [0x1400234c8], 1
cmp qword [0x1400234c0], 0
jne 0x14000e5a1
mov rcx, qword [rsp + 0x380]
call fcn.14000e2f0
cmp qword [0x1400234b8], 0
jne 0x14000e5b8
mov rcx, qword [rsp + 0x380]
call fcn.14000e3c0
mov dword [0x1400202ec], 0
mov dword [0x140021864], 1
mov dword [0x140021860], 0
mov dword [0x140021868], 4
lea rcx, [0x140023090]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x14000e5fc
mov qword [0x140023090], 1
mov dword [rsp + 0x48], 0
jmp 0x14000e611
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x64
jge 0x14000e66a
movsxd rcx, dword [rsp + 0x48]
lea rax, [0x140021870]
mov qword [rax + rcx*8], 0
movsxd rcx, dword [rsp + 0x48]
lea rax, [0x140021b90]
mov qword [rax + rcx*8], 0
movsxd rcx, dword [rsp + 0x48]
lea rax, [0x140021eb0]
mov qword [rax + rcx*8], 0
movsxd rcx, dword [rsp + 0x48]
lea rax, [0x1400221d0]
mov qword [rax + rcx*8], 0
jmp 0x14000e606
mov dword [rsp + 0x48], 0
jmp 0x14000e67f
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x64
jge 0x14000e6a2
movsxd rax, dword [rsp + 0x48]
mov byte [rsp + rax + 0x150], 0
movsxd rax, dword [rsp + 0x48]
mov byte [rsp + rax + 0xe0], 0
jmp 0x14000e674
lea rcx, str.LogParams
call fcn.14000edc0
test eax, eax
je 0x14000eabc
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x140020580]
call fcn.14000ee20
test eax, eax
je 0x14000e6e2
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll_atoi]
mov dword [0x140021860], eax
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x140020588]
call fcn.14000ee20
test eax, eax
je 0x14000e715
lea r8, [0x140022c10]
lea rdx, [0x140021eb0]
lea rcx, [rsp + 0x60]
call fcn.140010830
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x140020590]
call fcn.14000ee20
test eax, eax
je 0x14000e7a0
lea rdx, [0x140020598]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000e752
mov dword [0x140021864], 1
jmp 0x14000e7a0
lea rdx, [0x1400205a0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000e774
mov dword [0x140021864], 3
jmp 0x14000e7a0
lea rdx, [0x1400205a8]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000e796
mov dword [0x140021864], 4
jmp 0x14000e7a0
mov dword [0x140021864], 1
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x1400205b0]
call fcn.14000ee20
test eax, eax
je 0x14000e7e7
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll_strtoul]
mov dword [0x1400202ec], eax
cmp dword [0x1400202ec], 0
jne 0x14000e7e7
mov dword [0x1400202ec], 0
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x1400205b8]
call fcn.14000ee20
test eax, eax
je 0x14000e81a
lea r8, [0x140022b10]
lea rdx, [0x140021b90]
lea rcx, [rsp + 0x60]
call fcn.140010830
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x1400205c0]
call fcn.14000ee20
test eax, eax
je 0x14000e84d
lea r8, [0x140022d10]
lea rdx, [0x1400221d0]
lea rcx, [rsp + 0x60]
call fcn.140010830
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, str.LogId
call fcn.14000ee20
test eax, eax
je 0x14000e880
lea r8, [0x140022a10]
lea rdx, [0x140021870]
lea rcx, [rsp + 0x60]
call fcn.140010830
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x1400205d0]
call fcn.14000ee20
test eax, eax
je 0x14000eab7
lea rdx, [0x14002048c]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000e8c4
mov dword [0x140021868], 0
jmp 0x14000eab7
lea rdx, [0x1400205d8]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000e8e9
mov dword [0x140021868], 1
jmp 0x14000eab7
lea rdx, [0x1400205e0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000e90e
mov dword [0x140021868], 2
jmp 0x14000eab7
lea rdx, [0x1400205e8]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000e933
mov dword [0x140021868], 3
jmp 0x14000eab7
lea rdx, str.BUFFER
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000e958
mov dword [0x140021868], 5
jmp 0x14000eab7
lea rdx, [0x1400205f8]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000ea97
mov dword [0x140021868], 4
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x140020600]
call fcn.14000ee20
test eax, eax
je 0x14000e9b7
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll_atol]
test eax, eax
jle 0x14000e9b7
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll_atol]
mov dword [0x1400203b8], eax
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x14002060c]
call fcn.14000ee20
test eax, eax
je 0x14000e9ea
lea r8, [rsp + 0x60]
mov edx, 0x64
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov r8d, 0x64
lea rdx, [rsp + 0x60]
lea rcx, [0x140020618]
call fcn.14000ee20
test eax, eax
je 0x14000ea1d
lea r8, [rsp + 0x60]
mov edx, 0x64
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCR90.dll_strcpy_s]
movsx eax, byte [rsp + 0x150]
test eax, eax
je 0x14000ea36
mov dword [rsp + 0x350], 1
jmp 0x14000ea41
mov dword [rsp + 0x350], 0
movsx eax, byte [rsp + 0xe0]
test eax, eax
je 0x14000ea5a
mov dword [rsp + 0x354], 1
jmp 0x14000ea65
mov dword [rsp + 0x354], 0
mov ecx, dword [rsp + 0x354]
mov eax, dword [rsp + 0x350]
or eax, ecx
test eax, eax
je 0x14000ea95
lea r8, str.C:TMPS7LOG
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x150]
call fcn.140010900
jmp 0x14000eab7
lea rdx, [0x1400204b4]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x14000eab7
mov dword [0x140021868], 6
call fcn.14000eec0
mov eax, dword [0x140021868]
mov dword [rsp + 0x358], eax
cmp dword [rsp + 0x358], 6
ja case.0x14000eaf0.3
movsxd rax, dword [rsp + 0x358]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xed78]
add rax, rcx
jmp rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140020628]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x1400234a8], rax
cmp qword [0x1400234a8], 0xffffffffffffffff
jne 0x14000eb62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0x32
jne 0x14000eb56
lea rcx, [0x140020640]
call fcn.1400101f0
jmp 0x14000eb62
lea rcx, [0x140020678]
call fcn.1400101f0
jmp 0x14000ed3e
jmp 0x14000ed3e
call fcn.140010ff0
mov dword [rsp + 0x320], 0
lea rdi, [rsp + 0x324]
xor eax, eax
mov ecx, 0x2c
rep stosb byte [rdi], al
mov dword [rsp + 0x2e8], 0
lea rdi, [rsp + 0x2ec]
xor eax, eax
mov ecx, 0x2c
rep stosb byte [rdi], al
mov dword [rsp + 0x318], 0xffffffff
mov dword [rsp + 0x31c], 0xffffffff
mov dword [rsp + 0x2e4], 0xffffffff
mov dword [rsp + 0x2e0], 0xffffffff
mov dword [rsp + 0x20], 1
lea r9, str.C:TMPS7LOG
lea r8, [0x1400206a0]
mov edx, 0x100
lea rcx, [0x140022690]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov dword [rsp + 0x20], 0x180
mov r9d, 0x40
xor r8d, r8d
lea rdx, [0x140022690]
lea rcx, [rsp + 0x318]
call qword [sym.imp.MSVCR90.dll__sopen_s]
test eax, eax
jne 0x14000ec50
lea rdx, [rsp + 0x320]
mov ecx, dword [rsp + 0x318]
call qword [sym.imp.MSVCR90.dll__fstat64i32]
mov dword [rsp + 0x31c], eax
mov ecx, dword [rsp + 0x318]
call qword [sym.imp.MSVCR90.dll__close]
mov dword [rsp + 0x20], 2
lea r9, str.C:TMPS7LOG
lea r8, [0x1400206b0]
mov edx, 0x100
lea rcx, [0x140022f90]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov dword [rsp + 0x20], 0x180
mov r9d, 0x40
xor r8d, r8d
lea rdx, [0x140022f90]
lea rcx, [rsp + 0x2e4]
call qword [sym.imp.MSVCR90.dll__sopen_s]
test eax, eax
jne 0x14000eccb
lea rdx, [rsp + 0x2e8]
mov ecx, dword [rsp + 0x2e4]
call qword [sym.imp.MSVCR90.dll__fstat64i32]
mov dword [rsp + 0x2e0], eax
mov ecx, dword [rsp + 0x2e4]
call qword [sym.imp.MSVCR90.dll__close]
cmp dword [rsp + 0x31c], 0
jne 0x14000ed09
cmp dword [rsp + 0x2e0], 0
jne 0x14000ed09
mov rax, qword [rsp + 0x308]
cmp qword [rsp + 0x340], rax
jge 0x14000ecfd
mov dword [0x1400203bc], 2
jmp 0x14000ed07
mov dword [0x1400203bc], 1
jmp 0x14000ed29
cmp dword [rsp + 0x2e0], 0
jne 0x14000ed1f
mov dword [0x1400203bc], 2
jmp 0x14000ed29
mov dword [0x1400203bc], 1
call fcn.1400110a0
jmp 0x14000ed3e
jmp 0x14000ed3e
lea rcx, str.Fehler_im_STEP7_Logsystem__bitte_wenden_Sie_sich_an_den_Hersteller__
call fcn.1400101f0
mov dword [0x1400234a0], 1
cmp dword [0x140021860], 0
je 0x14000ed5d
lea rcx, [0x140022680]
call fcn.14000eda0
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140015270
add rsp, 0x370
pop rdi
ret