Function at 0x45f840
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x19c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x20]
push 0x16e360
mov dword [esp + 0x18], eax
mov dword [ebx + 0x20], edi
call fcn.0052d8ce
add esp, 4
cmp eax, edi
mov dword [ebx + 0x10], eax
je 0x45fcb4
push 0x186a0
call fcn.0052d8ce
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x45fcb4
push 0x8000
mov ecx, 0x12b1550
call fcn.0045e130
push eax
call fcn.00535d2b
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x45f8cc
push esi
call fcn.0052d65c
mov ecx, dword [ebx + 0x10]
push ecx
call fcn.0052d65c
add esp, 8
mov dword [ebx + 0x10], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret 4
cmp dword [0x838120], 5
jne 0x45f8e9
mov ecx, 0x116fd30
mov dword [0x838120], 1
call fcn.00462380
mov ecx, 0x116fd30
call fcn.00462200
mov edi, 0x6219a4
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0xb09248
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, 0x5e5e6c
mov edi, 0x5e5e90
mov dword [0xb09684], eax
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x14]
mov dword [0xb08964], eax
push edi
push ebp
call fcn.00531af7
mov eax, dword [edi]
add esp, 0xc
test eax, eax
jge 0x45fb35
lea eax, [esp + 0x10]
push 4
push eax
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x45fb29
mov esi, dword [esp + 0x18]
push eax
push esi
push ebp
call fcn.00531af7
lea ecx, [esp + 0x1c]
push 4
push ecx
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
je 0x45fb29
push 4
push 0xb09240
push ebp
call fcn.00531af7
push 4
push 0xb09244
push ebp
call fcn.00531af7
mov edx, dword [esp + 0x28]
add edx, 0xfffffff8
push edx
push esi
push ebp
call fcn.00531af7
add esp, 0x24
mov ecx, 0x15f7cf0
push 0xb09248
push esi
call fcn.00460250
lea eax, [esp + 0x10]
push 4
push eax
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x45fb29
push 4
push 0x12b04c8
push ebp
call fcn.00531af7
push 4
push 0x12b04cc
push ebp
call fcn.00531af7
lea ecx, [esp + 0x28]
push 4
push ecx
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x34]
add esp, 0x24
test eax, eax
je 0x45fb29
push 4
push 0xb0968c
push ebp
call fcn.00531af7
push 0x14
push 0xb09690
push ebp
call fcn.00531af7
push 4
push 0xb096a4
push ebp
call fcn.00531af7
lea edx, [esp + 0x34]
push 4
push edx
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x40]
add esp, 0x30
test eax, eax
je 0x45fb29
push 4
push 0xb1ef30
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, 4
mov esi, 8
jle 0x45fac0
push 4
push 0xb1ef34
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
jle 0x45fac0
push 4
push 0xb09b08
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, 0xc
jle 0x45fac0
push 0x51
push 0xb09630
push ebp
call fcn.00531af7
add esp, 0xc
lea eax, [esp + 0x10]
push 4
push eax
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x45fb29
push 4
push 0xb09684
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, 4
jle 0x45fb19
push 4
push 0xb08964
push ebp
call fcn.00531af7
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
jle 0x45fb19
push 4
push 0x12b0514
push ebp
call fcn.00531af7
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push ecx
push ebp
call fcn.00531af7
add esp, 0xc
push 4
push edi
push ebp
call fcn.00531af7
add esp, 0xc
mov edx, dword [edi]
lea esi, [ebx + 0x24]
sub edx, 4
push edx
push esi
push ebp
call fcn.00531af7
mov eax, dword [esi]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
push ebp
call fcn.00531af7
push ebp
call fcn.00531833
mov edi, dword [esp + 0x30]
mov edx, dword [ebx + 0x2c]
xor ebp, ebp
add esp, 0x1c
cmp edi, ebp
mov dword [ebx + 4], edx
je 0x45fb72
push 0x32
call edi
add esp, 4
mov eax, dword [esp + 0x1b0]
mov dword [ebx + 0xc], ebp
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x28]
cmp eax, ebp
mov dword [esi], ebp
jle 0x45fc85
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x14]
cmp eax, 0x64
jge 0x45fbbd
mov ecx, dword [esi]
mov dword [ebx + 0x18], ecx
mov edx, dword [esi + 8]
cmp ecx, ebp
mov dword [ebx + 0x1c], edx
jbe 0x45fbbd
movsx ecx, word [esi + 0xe]
cmp dword [ebx + eax*4 + 0x360], ecx
je 0x45fbbd
add esi, 0x10
cmp eax, 0x64
jl 0x45fb99
mov ecx, dword [ebx + 0x18]
cmp ecx, ebp
jbe 0x45fc4d
cmp dword [ebx + eax*4 + 0x4f0], ebp
je 0x45fc0a
cmp dword [ebx + 8], ebp
jne 0x45fc0a
mov edx, dword [ebx + eax*4 + 0x680]
push ecx
mov ecx, dword [ebx + 0x10]
add edx, ecx
mov ecx, 0x15f7cf0
push edx
call fcn.00460250
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + 8]
cmp ecx, dword [ebx + eax*4 + 0x40]
je 0x45fc4d
movsx edx, word [esi + 0xe]
push edx
push str.Error:save_data___comp__d
lea eax, [esp + 0x24]
jmp 0x45fc44
mov edx, dword [ebx + 0x10]
push ecx
mov ecx, dword [ebx + eax*4 + 0x680]
add ecx, edx
mov edx, dword [ebx + eax*4 + 0x40]
push ecx
push edx
mov ecx, 0xc75780
call fcn.0045c440
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + 8]
cmp ecx, dword [ebx + eax*4 + 0x40]
je 0x45fc4d
movsx edx, word [esi + 0xe]
push edx
push str.Error:save_data___raw__d
lea eax, [esp + 0xec]
push eax
call fcn.0052d60a
add esp, 0xc
cmp edi, ebp
je 0x45fc71
mov ecx, dword [ebx + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 5
sub eax, ecx
mov ecx, dword [ebx + 0x28]
lea eax, [eax + eax*4]
shl eax, 1
cdq
dec ecx
idiv ecx
add eax, 0x32
push eax
call edi
add esp, 4
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x28]
inc edx
mov eax, edx
mov dword [ebx + 0xc], edx
cmp eax, ecx
jl 0x45fb8d
mov edx, dword [ebx + 0x10]
push edx
call fcn.0052d65c
mov eax, dword [esp + 0x1c]
push eax
call fcn.0052d65c
mov dword [ebx + 0x10], ebp
mov ecx, dword [0xb08980]
add esp, 8
mov dword [0x1172198], 0xffffffff
mov dword [0xb08984], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret 4