Function at 0x1003d070
Capabilities:
Check os version
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c654c
mov eax, dword fs:[0]
push eax
mov eax, 0x1818
call fcn.100567b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x168c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x181c], eax
xor eax, eax
push 0x1046
push eax
mov word [ebp - 0x1688], ax
lea eax, [ebp - 0x1686]
push eax
mov dword [ebp - 0x1820], edi
call fcn.100567e0
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x16d0]
add esp, 0xc
push eax
call esi
lea eax, [ebp - 0x1818]
mov dword [ebp - 0x1818], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1003d111
mov eax, dword [ebp - 0x1814]
mov ecx, dword [ebp - 0x1810]
jmp 0x1003d11d
mov ecx, dword [ebp - 0x168c]
mov eax, dword [ebp - 0x168c]
push ecx
push eax
xor edx, edx
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
mov word [ebp - 0x24], dx
push str._d._d
push eax
movdqu xmmword [ebp - 0x22], xmm0
mov word [ebp - 0x12], dx
call fcn.10006b80
lea eax, [ebp - 0x16f4]
add esp, 0x10
test eax, eax
je 0x1003d17b
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003d172
lea ecx, [ebp - 0x16f4]
push ecx
call eax
jmp 0x1003d17b
lea eax, [ebp - 0x16f4]
push eax
call esi
mov ax, word [ebp - 0x16f4]
cmp ax, 9
je 0x1003d193
cmp ax, 6
mov eax, 0x20
jne 0x1003d198
mov eax, 0x40
lea ecx, [ebp - 0x24]
push ecx
push 0x20
push eax
push dword [ebp - 0x181c]
lea eax, [ebp - 0x1688]
push dword [ebp - 0x168c]
push dword [0x1017b868]
push 0x100e8930
push eax
call fcn.1003f3d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x640], ax
lea eax, [ebp - 0x63e]
push eax
call fcn.100567e0
add esp, 0x2c
xor eax, eax
mov word [ebp - 0x438], ax
push 0x206
push eax
lea eax, [ebp - 0x436]
push eax
call fcn.100567e0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x640]
push eax
push 0
push 0x100e892c
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x1688]
push eax
call fcn.10042160
test eax, eax
je 0x1003d60a
push 0xb8
lea eax, [ebp - 0x17b8]
push 0
push eax
call fcn.100567e0
add esp, 8
lea ecx, [ebp - 0x17b8]
call fcn.1003e340
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x640]
lea ecx, [ebp - 0x17a8]
push eax
call fcn.1003ee00
test eax, eax
lea ecx, [ebp - 0x17b8]
mov eax, dword [ebp - 0x17b8]
mov eax, dword [eax + 4]
jne 0x1003d2a9
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x1003d2b8
or eax, 4
jmp 0x1003d2b8
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.100405a0
mov dword [ebp - 0x1694], 6
mov dword [ebp - 0x1690], 0
lea eax, [ebp - 0x17b8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1694]
call fcn.10049150
push 0x100e8984
push ecx
push str.driverInfo
lea ecx, [ebp - 0x1694]
call fcn.10048de0
add esp, 4
mov ecx, eax
call fcn.10048de0
cmp dword [eax], 0
jne 0x1003d314
mov eax, dword [eax + 4]
jmp 0x1003d319
mov eax, 0x1017531c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x16c4]
mov dword [ebp - 0x16b0], 0xf
mov dword [ebp - 0x16b4], 0
mov byte [ebp - 0x16c4], 0
call fcn.10006160
push str.param
push ecx
push str.driverInfo
lea ecx, [ebp - 0x1694]
mov byte [ebp - 4], 2
call fcn.10048de0
add esp, 4
mov ecx, eax
call fcn.10048de0
cmp dword [eax], 0
jne 0x1003d372
mov eax, dword [eax + 4]
jmp 0x1003d377
mov eax, 0x1017531c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x16ac]
mov dword [ebp - 0x1698], 0xf
mov dword [ebp - 0x169c], 0
mov byte [ebp - 0x16ac], 0
call fcn.10006160
push str.type
push ecx
push str.driverInfo
lea ecx, [ebp - 0x1694]
mov byte [ebp - 4], 3
call fcn.10048de0
add esp, 4
mov ecx, eax
call fcn.10048de0
cmp dword [eax], 1
jne 0x1003d3d8
mov eax, dword [eax + 4]
mov esi, dword [eax]
mov dword [ebp - 0x181c], esi
jmp 0x1003d3e2
mov dword [ebp - 0x181c], 0
lea ecx, [ebp - 0x17a8]
call fcn.1003eec0
test eax, eax
jne 0x1003d419
mov eax, dword [ebp - 0x17b8]
lea ecx, [ebp - 0x17b8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x1003d411
or eax, 4
push 0
push eax
call fcn.100405a0
cmp dword [ebp - 0x16b0], 0x10
jb 0x1003d430
mov ecx, dword [ebp - 0x16c4]
test ecx, ecx
jne 0x1003d436
xor edi, edi
jmp 0x1003d43d
lea ecx, [ebp - 0x16c4]
call fcn.10010610
mov edi, eax
cmp dword [ebp - 0x1698], 0x10
jb 0x1003d454
mov ecx, dword [ebp - 0x16ac]
test ecx, ecx
jne 0x1003d45a
xor esi, esi
jmp 0x1003d461
lea ecx, [ebp - 0x16ac]
call fcn.10010610
mov esi, eax
test edi, edi
je 0x1003d509
test esi, esi
je 0x1003d500
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d476
sub ecx, edx
sar ecx, 1
je 0x1003d500
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x22e]
push eax
call fcn.100567e0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push 0
push 0x100e892c
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.10042160
test eax, eax
je 0x1003d500
xor eax, eax
cmp dword [ebp - 0x181c], eax
sete al
cmp eax, 1
jne 0x1003d4ed
mov dword [ebp - 0x1820], 0
jmp 0x1003d500
push esi
push eax
lea ecx, [ebp - 0x230]
call fcn.100427e0
mov dword [ebp - 0x1820], eax
push edi
call fcn.10055d78
add esp, 4
test esi, esi
je 0x1003d516
push esi
call fcn.10055d78
add esp, 4
cmp dword [ebp - 0x1698], 0x10
jb 0x1003d52d
push dword [ebp - 0x16ac]
call fcn.100559ce
add esp, 4
cmp dword [ebp - 0x16b0], 0x10
mov dword [ebp - 0x1698], 0xf
mov dword [ebp - 0x169c], 0
mov byte [ebp - 0x16ac], 0
jb 0x1003d55f
push dword [ebp - 0x16c4]
call fcn.100559ce
add esp, 4
lea ecx, [ebp - 0x1694]
mov dword [ebp - 0x16b0], 0xf
mov dword [ebp - 0x16b4], 0
mov byte [ebp - 0x16c4], 0
mov byte [ebp - 4], 0
call fcn.1004a390
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x17b8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x17b8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x17bc], eax
lea ecx, [ebp - 0x17a8]
call fcn.1003e4f0
mov eax, dword [ebp - 0x17b8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x17b8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x17bc], eax
lea eax, [ebp - 0x1748]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100757d2
mov eax, dword [ebp - 0x1820]
add esp, 4
jmp 0x1003d60c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 8