Function at 0x40ba50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0xc], ecx
jle 0x40bbbe
lea esi, [eax + 0x1e]
mov dword [ebp - 0x2c], esi
jmp 0x40ba93
mov esi, dword [ebp - 0x2c]
push edi
push 1
lea edx, [ebp - 0x1c]
xor ecx, ecx
push 4
push edx
mov word [esi + 2], cx
call ebx
add esp, 0x10
cmp dword [ebp - 0x1c], 2
jne 0x40bc1d
push edi
push 1
lea eax, [ebp - 0x3c]
push 4
push eax
call ebx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
add esp, 0x10
test eax, eax
setne cl
inc ecx
mov word [esi - 2], cx
cmp eax, 1
jne 0x40badd
mov edx, 8
mov word [esi], dx
jmp 0x40bae0
mov word [esi], ax
push edi
push 1
lea eax, [ebp - 0x40]
push 4
push eax
call ebx
push edi
push 1
lea ecx, [ebp - 0x30]
push 4
push ecx
call ebx
mov edx, dword [ebp - 0x30]
push 1
push 0
push 8
push edi
mov dword [esi - 6], edx
call dword [sym.imp.MSVCR100.dll__fseeki64]
push edi
push 1
lea eax, [ebp - 0x10]
push 8
push eax
call ebx
add esp, 0x40
push 8
lea ecx, [ebp - 0x10]
push ecx
add esi, 4
push esi
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
mov eax, 8
call fcn.00409670
cmp dword [ebp - 0x40], 0
je 0x40bb7a
push edi
push 1
lea edx, [ebp - 0x1c]
push 4
push edx
call ebx
mov eax, dword [ebp - 0x1c]
mov ecx, eax
add esp, 0x10
and ecx, 0x80000003
jns 0x40bb5a
dec ecx
or ecx, 0xfffffffc
inc ecx
mov dword [ebp - 0x38], ecx
je 0x40bb6b
mov edx, 4
sub edx, ecx
add eax, edx
mov dword [ebp - 0x1c], eax
cdq
push 1
push edx
push eax
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x10
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40bba1
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x30], eax
add eax, eax
add eax, eax
add eax, eax
je 0x40bba1
push edi
push 1
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0xffffffe2
push eax
call ebx
add esp, 0x10
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40bbaa
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x2c], 0x30
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp + 0xc]
jl 0x40ba90
push edi
push 1
lea edx, [ebp - 0x1c]
push 4
push edx
call ebx
mov eax, dword [ebp - 0x1c]
add esp, 0x10
cmp eax, 0x3e7
je 0x40be9c
lea ebx, [ebx]
sub eax, 3
je 0x40bdda
sub eax, 3
je 0x40bdb5
dec eax
jne 0x40bed7
push edi
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call ebx
mov ecx, dword [ebp - 0x38]
lea eax, [ecx - 3]
add esp, 0x10
cmp eax, 0x15
ja case.default.0x40bc16
jmp dword [eax*4 + 0x40bf34]
mov esi, dword [ebp - 0x24]
push str.SPSS
lea ecx, [esi + 1]
push ecx
push str.The_level__d_file_does_not_seem_to_be_a__s_file__n
call dword [sym.imp.MSVCR100.dll_printf]
mov eax, dword [esi*4 + 0x4695d0]
add esp, 0xc
mov ebx, 1
call fcn.004016c0
push 1
push 0
push 0x28
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x10
jmp case.0x40bc16.9
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
push 1
push 0
push 8
push edi
call esi
push edi
push 1
push 8
push 0x4a5d88
call ebx
push 1
push 0
push 0x10
push edi
call esi
add esp, 0x30
jmp case.0x40bc16.9
push edi
push 1
lea ecx, [ebp - 0x18]
push 4
push ecx
call ebx
push edi
push 1
lea edx, [ebp - 0x14]
push 4
push edx
call ebx
mov eax, dword [ebp - 0x14]
cdq
push 1
push edx
push eax
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x30
jmp case.0x40bc16.9
push edi
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call ebx
push edi
push 1
push 4
lea ecx, [ebp - 0x14]
push ecx
call ebx
mov eax, dword [ebp - 0x14]
add eax, eax
add eax, eax
cdq
push 1
push edx
push eax
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x30
jmp case.0x40bc16.9
push edi
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call ebx
push edi
push 1
lea ecx, [ebp - 0x14]
push 4
push ecx
call ebx
mov eax, dword [ebp - 0x14]
cdq
push 1
push edx
push eax
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x30
jmp case.0x40bc16.9
push edi
push 1
lea edx, [ebp - 0x18]
push 4
push edx
call ebx
push edi
push 1
push 4
lea eax, [ebp - 0x14]
push eax
jmp 0x40bcca
push edi
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call ebx
push edi
push 1
lea ecx, [ebp - 0x14]
push 4
push ecx
call ebx
mov eax, dword [ebp - 0x14]
cdq
push 1
push edx
push eax
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x30
jmp case.0x40bc16.9
push edi
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call ebx
push edi
push 1
lea ecx, [ebp - 0x14]
push 4
push ecx
call ebx
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
cdq
push 1
push edx
push eax
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x30
jmp case.0x40bc16.9
push edi
push 1
lea edx, [ebp - 0x18]
push 4
push edx
call ebx
push edi
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call ebx
mov eax, dword [ebp - 0x14]
cdq
push 1
push edx
push eax
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x30
jmp case.0x40bc16.9
push edi
push 1
lea ecx, [ebp - 0x18]
push 4
push ecx
call ebx
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
shl eax, 4
cdq
push 1
push edx
push eax
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
jmp 0x40be7d
push edi
push 1
lea edx, [ebp - 0x18]
push 4
push edx
call ebx
add esp, 0x10
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
jle 0x40be45
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
push 1
push 0
push 8
push edi
call esi
push edi
push 1
lea eax, [ebp - 0x1d]
push 1
push eax
call ebx
movzx eax, byte [ebp - 0x1d]
lea ecx, [eax + 1]
add esp, 0x20
and ecx, 7
jne 0x40be22
xor edx, edx
jmp 0x40be29
mov edx, 8
sub edx, ecx
lea eax, [edx + eax]
cdq
push 1
push edx
push eax
push edi
call esi
mov eax, dword [ebp - 0x28]
inc eax
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x18]
jl 0x40bdf5
jmp 0x40be4b
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
push edi
push 1
lea ecx, [ebp - 0x1c]
push 4
push ecx
call ebx
add esp, 0x10
cmp dword [ebp - 0x1c], 4
jne 0x40bf0f
push edi
push 1
lea edx, [ebp - 0x18]
push 4
push edx
call ebx
mov eax, dword [ebp - 0x18]
add eax, eax
add eax, eax
cdq
push 1
push edx
push eax
push edi
call esi
add esp, 0x20
push edi
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call ebx
mov eax, dword [ebp - 0x1c]
add esp, 0x10
cmp eax, 0x3e7
jne 0x40bbe0
push 1
push 0
push 4
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
push edi
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [ebp - 0x24]
mov dword [ecx*8 + 0x468aa0], eax
mov eax, dword [ebp - 0x34]
add esp, 0x14
mov dword [ecx*8 + 0x468aa4], edx
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045d089
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
push ecx
jmp 0x40bf14
mov edx, dword [ebp - 0x24]
mov esi, dword [sym.imp.MSVCR100.dll_printf]
inc edx
push edx
push ecx
push str.Invalid_dictionary_subtype__d_in_SPSS_level__d_file.__This_is_n
call esi
add esp, 0xc
push str.probably_due_to_a_new_version_of_SPSS_that_HLM_does_not_know_about_yet._n
call esi
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045d089
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
inc eax
push eax
push str.The_level__d_SPSS_has_a_strange_header._n
call dword [sym.imp.MSVCR100.dll_printf]
mov ecx, dword [ebp - 8]
add esp, 8
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0045d089
mov esp, ebp
pop ebp
ret