Function at 0x406690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
push str.KCPROFILE::GetProfileDataFromKXP_n
call fcn.00413880
add esp, 4
cmp dword [ebp + 8], 0
jne 0x4066d3
mov dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1050], 0xffffffff
jne 0x4066e7
or eax, 0xffffffff
jmp 0x40691e
push 0
push 0
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x90
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x1054]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1050]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x1054]
mov byte [eax + 3], 0
push 0x429da8
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x1054]
push edx
call fcn.00418740
add esp, 8
test eax, eax
jne 0x40691b
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1054]
movsx edx, word [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1054]
add ecx, 0x10
push ecx
push str.model___s__total__d_profile_exist_n
call fcn.00413880
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x1054]
movsx ecx, word [eax + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
jmp 0x40679f
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1054]
movsx edx, word [ecx + 0xc]
cmp dword [ebp - 0x1c], edx
jge 0x40691b
push 0
lea eax, [ebp - 0x14]
push eax
push 0x2bc
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x106c]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1050]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x106c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x106c]
mov eax, dword [eax + 0x22c]
add eax, dword [edx + 0x230]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x106c]
add eax, dword [edx + 0x234]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x106c]
add eax, dword [edx + 0x238]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x106c]
mov edx, dword [ecx + 0x238]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x106c]
mov edx, dword [ecx + 0x234]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x106c]
mov edx, dword [ecx + 0x230]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x106c]
mov edx, dword [ecx + 0x22c]
push edx
push str._d__d__d__d_n
call fcn.00413880
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x40688b
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x106c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00416a40
add esp, 8
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x4068b6
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x106c]
add edx, 0x28
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00416a40
add esp, 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x200
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
je 0x4068e3
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x106c]
add eax, 0x23c
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00416a40
add esp, 8
mov edx, dword [ebp - 8]
add edx, 0x80
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x106c]
push edx
push str.Profile_:__s__Size_:__d_n
call fcn.00413880
add esp, 0xc
push 1
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x406796
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10