Function at 0x10016f70
Capabilities:
Check os version
Get common file path
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1003a3f1
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x3a0]
mov ebp, dword [esp + 0x3a4]
xor ebx, ebx
push 0x1fe
lea ecx, [esp + 0x192]
push ebx
push ecx
mov dword [esp + 0x24], eax
mov word [esp + 0x198], bx
call fcn.1002fb20
add esp, 0xc
push 0x100
lea edx, [esp + 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x18c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10017010
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x190]
push eax
lea esi, [esp + 0x44]
call fcn.100031f0
mov ecx, esi
push ecx
mov ecx, 3
lea esi, [esp + 0x5c]
mov dword [esp + 0x39c], ebx
call fcn.10016b90
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x3a0], 1
call fcn.10003860
mov esi, 8
mov byte [esp + 0x398], bl
cmp dword [esp + 0x70], esi
jb 0x1001707c
mov edx, dword [esp + 0x5c]
push edx
call fcn.1002b322
add esp, 4
cmp byte [edi], bl
je 0x100170c0
push 0x11
push str.WindowsSystem32_
lea ecx, [esp + 0x44]
call fcn.10003120
mov eax, dword [edi + 4]
sub eax, ebx
je 0x100170b7
sub eax, 1
je 0x100170ae
sub eax, 1
jne 0x10017126
push 0xf
push str.AnBakConfig.dat
jmp 0x1001711d
push 0xf
push str.PaBakConfig.dat
jmp 0x1001711d
push 0xf
push str.AbBakConfig.dat
jmp 0x1001711d
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x78], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x78], 6
lea ecx, [esp + 0x3c]
jb 0x100170e7
push 0x12
push str.ProgramDataAomei_
jmp 0x100170ee
push 0x38
push str.Documents_and_SettingsAll_UsersApplication_DataAomei_
call fcn.10003120
mov eax, dword [edi + 4]
sub eax, ebx
je 0x10017116
sub eax, 1
je 0x1001710d
sub eax, 1
jne 0x10017126
push 0xc
push str.AnConfig.dat
jmp 0x1001711d
push 0xc
push str.PaConfig.dat
jmp 0x1001711d
push 0xc
push str.AbConfig.dat
lea ecx, [esp + 0x44]
call fcn.10003120
cmp dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
jae 0x10017134
lea eax, [esp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001722a
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
lea ecx, [esp + 0x58]
mov byte [esp + 0x398], 2
call fcn.10028dd0
push esi
push ebx
lea eax, [esp + 0x60]
lea ecx, [esp + 0x44]
call fcn.10003860
push 0xa
push str.Config.dat
lea ecx, [esp + 0x44]
call fcn.10003120
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x100171a8
lea eax, [esp + 0x40]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x100171ff
mov esi, 8
cmp dword [esp + 0x70], esi
jb 0x100171da
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.1002b322
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x100173b4
mov edx, dword [esp + 0x40]
push edx
jmp 0x100173ac
mov edi, 8
cmp dword [esp + 0x70], edi
jb 0x10017217
mov eax, dword [esp + 0x5c]
push eax
call fcn.1002b322
add esp, 4
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jmp 0x1001722f
mov edi, 8
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10017262
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x54], edi
jb 0x100173b4
mov edx, dword [esp + 0x40]
push edx
jmp 0x100173ac
mov ecx, dword [ebp]
mov eax, 0x4ec4ec4f
mul dword [esp + 0x1c]
shr edx, 5
imul edx, edx, 0x68
cmp ecx, edx
jb 0x10017388
mov eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x10017388
mov eax, 0x4ec4ec4f
mul dword [esp + 0x1c]
shr edx, 5
imul edx, edx, 0x68
push edx
lea ecx, [esp + 0x2c]
mov dword [ebp], edx
mov dword [esp + 0x2c], vtable.MemoryControl.0
mov dword [esp + 0x30], ebx
call fcn.1002b1c0
push ebx
push ebx
mov edi, eax
push ebx
xor eax, eax
push eax
push esi
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100172ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x28]
call fcn.1002b1a0
lea esi, [esp + 0x3c]
call fcn.10003e00
jmp 0x100173b4
mov edx, dword [ebp]
push ebx
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
push esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x100172d0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4ec4ec4f
mul dword [ebp]
xor esi, esi
shr edx, 5
je 0x1001733f
lea ecx, [ecx]
push edi
call fcn.1002a430
mov eax, 0x4ec4ec4f
mul dword [ebp]
add esi, 1
shr edx, 5
add edi, 0x68
cmp esi, edx
jb 0x10017320
mov edi, dword [esp + 0x38]
mov eax, dword [ebp]
mov esi, dword [esp + 0x18]
push eax
push ebx
push esi
call fcn.1002fb20
mov ecx, dword [ebp]
add esp, 0xc
push ecx
push edi
push esi
call fcn.100304b0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
je 0x10017370
push eax
call fcn.1002c6d7
add esp, 4
cmp dword [esp + 0x54], 8
jb 0x10017384
mov edx, dword [esp + 0x40]
push edx
call fcn.1002b322
add esp, 4
mov al, 1
jmp 0x100173b6
mov eax, 0x4ec4ec4f
mul dword [esp + 0x1c]
shr edx, 5
imul edx, edx, 0x68
push esi
mov dword [ebp], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x54], edi
jb 0x100173b4
mov eax, dword [esp + 0x40]
push eax
call fcn.1002b322
add esp, 4
xor al, al
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.1002b6af
add esp, 0x388
ret 8