Function at 0x548200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13eb0
call fcn.0067ac70
push esi
push edi
cmp dword [0x15daa24], 0
jne 0x54822c
push 0x30
push 0x71aab0
push str.Select_a_mission_to_refresh_first.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.c:_fallenlevels_
lea eax, [ebp - 0x1a4]
push eax
call fcn.006b6b40
add esp, 8
mov ecx, dword [0x15daa24]
add ecx, 0x310
push ecx
lea edx, [ebp - 0x1a4]
push edx
call fcn.006b6b50
add esp, 8
lea eax, [ebp - 0x1a4]
push eax
call fcn.006d3500
add esp, 4
push 0x721800
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.0067f590
add esp, 8
test eax, eax
jne 0x548297
push 0x721800
lea edx, [ebp - 0x1a4]
push edx
call fcn.006b6b50
add esp, 8
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401410
add esp, 4
test eax, eax
jne 0x5482e0
lea ecx, [ebp - 0x1a4]
push ecx
push str.Cannot_find_an_updated_version_of_the_mission_in__s.
lea edx, [ebp - 0x370]
push edx
call fcn.0041e320
add esp, 0xc
push 0x30
push 0x71aab0
lea eax, [ebp - 0x370]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x54899b
mov ecx, dword [0x15daa24]
movzx edx, word [ecx + 0x518]
mov dword [ebp - 0x44], edx
push 0x716764
lea eax, [ebp - 0x1a4]
push eax
call fcn.00690360
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x548343
lea ecx, [ebp - 0x1a4]
push ecx
push str.Cannot_open_the_updated_version_of_the_mission_from__s.
lea edx, [ebp - 0x370]
push edx
call fcn.0041e320
add esp, 0xc
push 0x30
push 0x71aab0
lea eax, [ebp - 0x370]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x54899b
mov dword [ebp - 0xc], 0
jmp 0x548355
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x200
jge 0x548379
imul edx, dword [ebp - 0xc], 0x4a
mov eax, dword [0x15daa24]
lea ecx, [eax + edx + 0x520]
push ecx
call fcn.00547330
add esp, 4
jmp 0x54834c
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x48], 0x4a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x20], 8
jbe 0x54871a
mov edx, dword [ebp - 4]
push edx
push 1
push 4
lea eax, [ebp - 0x4c]
push eax
call fcn.006b7750
add esp, 0x10
mov dword [ebp - 0x14], 0
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 4]
push edx
push 1
push 4
lea eax, [ebp - 0x3c]
push eax
call fcn.006b7750
add esp, 0x10
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
push 1
push 0x104
mov eax, 1
imul ecx, eax, 0
mov edx, dword [0x15daa24]
lea eax, [edx + ecx + 4]
push eax
call fcn.006b7750
add esp, 0x10
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
push 1
push 0x104
mov eax, 1
imul ecx, eax, 0
mov edx, dword [0x15daa24]
lea eax, [edx + ecx + 0x108]
push eax
call fcn.006b7750
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x104
mov edx, 1
imul eax, edx, 0
mov ecx, dword [0x15daa24]
lea edx, [ecx + eax + 0x20c]
push edx
call fcn.006b7750
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 1
push 0x104
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [0x15daa24]
lea ecx, [eax + edx + 0x310]
push ecx
call fcn.006b7750
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
push 1
push 0x104
mov eax, 1
imul ecx, eax, 0
mov edx, dword [0x15daa24]
lea eax, [edx + ecx + 0x414]
push eax
call fcn.006b7750
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
push 2
mov edx, dword [0x15daa24]
add edx, 0x518
push edx
call fcn.006b7750
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 1
push 2
mov ecx, dword [0x15daa24]
add ecx, 0x51a
push ecx
call fcn.006b7750
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
push 1
push 2
mov eax, dword [0x15daa24]
add eax, 0x51c
push eax
call fcn.006b7750
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
push 1
mov edx, dword [0x15daa24]
add edx, 0x51e
push edx
call fcn.006b7750
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 1
push 1
mov ecx, dword [0x15daa24]
add ecx, 0x51f
push ecx
call fcn.006b7750
add esp, 0x10
push 1
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
mov eax, dword [0x15daa24]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov dword [ebp - 0x18], 0
jmp 0x548595
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x200
jge 0x54867d
mov eax, dword [ebp - 4]
push eax
push 1
push 0xe
lea ecx, [ebp - 0xa0]
push ecx
call fcn.006b7750
add esp, 0x10
push 1
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0x3c
mov ecx, 4
imul edx, ecx, 0
lea eax, [ebp + edx - 0x92]
push eax
call fcn.006b7750
add esp, 0x10
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
mov dl, byte [ebp - 0x9e]
mov byte [ebp - 5], dl
mov al, byte [ebp - 0x9d]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x548658
movzx edx, byte [ebp - 5]
cmp edx, 0xc
je 0x54863d
movzx eax, byte [ebp - 5]
cmp eax, 0x1b
je 0x54863d
movzx ecx, byte [ebp - 5]
cmp ecx, 0x20
je 0x54863d
movzx edx, byte [ebp - 5]
cmp edx, 0x23
jne 0x548646
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
movzx ecx, byte [ebp - 5]
cmp ecx, 0xf
jne 0x548658
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
imul eax, dword [ebp - 0x18], 0x4a
mov ecx, dword [0x15daa24]
lea edi, [ecx + eax + 0x520]
mov ecx, 0x12
lea esi, [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x54858c
mov dword [ebp - 0x1c], 0
jmp 0x54868f
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0xfe
jge 0x5486c0
mov eax, dword [ebp - 4]
push eax
push 1
push 1
lea ecx, [ebp - 0xe]
push ecx
call fcn.006b7750
add esp, 0x10
mov edx, dword [0x15daa24]
add edx, dword [ebp - 0x1c]
mov al, byte [ebp - 0xe]
mov byte [edx + 0x9920], al
jmp 0x548686
mov ecx, dword [ebp - 4]
push ecx
push 1
push 1
mov edx, dword [0x15daa24]
add edx, 0x9a1e
push edx
call fcn.006b7750
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 1
push 1
mov ecx, dword [0x15daa24]
add ecx, 0x9a1f
push ecx
call fcn.006b7750
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
push 1
push 1
mov eax, dword [0x15daa24]
add eax, 0x9a20
push eax
call fcn.006b7750
add esp, 0x10
jmp 0x5487b7
cmp dword [ebp - 0x20], 5
jbe 0x54876c
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x9a20
lea edx, [ebp - 0x13eb0]
push edx
call fcn.006b7750
add esp, 0x10
push 0x9a21
push 0
mov eax, dword [0x15daa24]
push eax
call fcn.0067d630
add esp, 0xc
push 0x9a20
lea ecx, [ebp - 0x13eb0]
push ecx
mov edx, dword [0x15daa24]
push edx
call fcn.0067d8c0
add esp, 0xc
jmp 0x5487b7
mov eax, dword [ebp - 4]
push eax
push 1
push 0x9920
lea ecx, [ebp - 0xa490]
push ecx
call fcn.006b7750
add esp, 0x10
push 0x9a21
push 0
mov edx, dword [0x15daa24]
push edx
call fcn.0067d630
add esp, 0xc
push 0x9920
lea eax, [ebp - 0xa490]
push eax
mov ecx, dword [0x15daa24]
push ecx
call fcn.0067d8c0
add esp, 0xc
cmp dword [ebp - 0x20], 0xa
jae 0x5487ca
mov edx, dword [0x15daa24]
mov byte [edx + 0x9a1e], 4
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x5488b5
mov dword [ebp - 0x2c], 0
jmp 0x5487ec
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], edx
jge 0x5488b3
push 1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x50], ecx
push 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00401560
add esp, 0xc
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x34], eax
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x38], dl
cmp byte [ebp - 0x38], 1
je 0x548850
cmp byte [ebp - 0x38], 2
je 0x5488a2
jmp 0x5488ae
push 0x800
push 0
lea eax, [ebp - 0xb70]
push eax
call fcn.0067d630
add esp, 0xc
push 4
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00401560
add esp, 0xc
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0xb70]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00401560
add esp, 0xc
cmp eax, 0xffffff98
jne 0x5488a0
mov eax, dword [ebp - 4]
push eax
call fcn.00401380
add esp, 4
jmp 0x5488ae
mov ecx, dword [ebp - 4]
push ecx
call fcn.00639560
add esp, 4
jmp 0x5487e3
jmp 0x548900
mov dword [ebp - 0xc], 0
jmp 0x5488c7
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x200
jge 0x548900
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [0x15daa24]
add ecx, 0x520
push ecx
imul edx, dword [ebp - 0xc], 0x4a
mov eax, dword [0x15daa24]
lea ecx, [eax + edx + 0x520]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005489b0
add esp, 0x10
jmp 0x5488be
push 1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x4000
mov eax, dword [0x15daa24]
sub eax, 0x15daa28
cdq
mov ecx, 0x9a21
idiv ecx
shl eax, 0xe
add eax, 0x199df10
push eax
call fcn.006b7750
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0068fac0
add esp, 4
mov eax, dword [0x15daa24]
push eax
call fcn.00545e60
add esp, 4
mov ecx, dword [0x15daa24]
push ecx
call fcn.00546050
add esp, 4
mov edx, dword [0x15daa24]
push edx
call fcn.00545ef0
add esp, 4
mov eax, dword [0x15daa24]
push eax
call fcn.005460e0
add esp, 4
call fcn.00552fb0
mov ecx, dword [0x15daa24]
push ecx
call fcn.00551f00
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret