Function at 0x5540f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc122
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], esi
mov dword [esi], vtable.TreeNode.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
lea eax, [esi + 0x140cc]
mov dword [esi], vtable.TMGround.0
mov ecx, 0x1000
nop
mov dword [eax], 0
lea eax, [eax + 0xc]
mov dword [eax - 8], 0
mov dword [eax - 4], 0
sub ecx, 1
jne 0x554180
lea ecx, [esi + 0x20110]
mov edx, 4
lea eax, [ecx + 0x14]
nop word [eax + eax]
mov dword [ecx], 0
lea ecx, [ecx + 0x2c]
mov dword [eax - 0x10], 0
lea eax, [eax + 0x2c]
mov dword [eax - 0x38], 0
mov dword [eax - 0x34], 0
mov dword [eax - 0x30], 0
mov dword [eax - 0x2c], 0
sub edx, 1
jne 0x5541b0
lea eax, [esi + 0x201c0]
lea ecx, [edx + 4]
nop dword [eax]
mov dword [eax], 0
lea eax, [eax + 0x18]
mov dword [eax - 0x14], 0
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
mov dword [eax - 8], 0
mov dword [eax - 4], 0
sub ecx, 1
jne 0x5541f0
mov dword [esi + 0x20a20], ecx
lea eax, [esi + 0x24]
mov dword [esi + 0x20a24], ecx
mov dword [esi + 0x20a28], ecx
mov dword [esi + 0x20a64], ecx
mov dword [0x9c25a8], 0x2b
push 0x80
push ecx
push eax
mov dword [esi + 0x20a20], ecx
mov dword [esi + 0x20a24], ecx
mov dword [esi + 0x20a28], ecx
mov dword [esi + 0x20a2c], ecx
mov dword [esi + 0x20a64], ecx
mov dword [esi + 0x20a68], ecx
mov dword [esi + 0xac], ecx
mov dword [esi + 0xb0], ecx
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xb8], ecx
mov dword [esi + 0x20a5c], ecx
mov dword [esi + 0xbc], 1
mov dword [esi + 0xc4], ecx
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa8], ecx
mov dword [esi + 0x20a30], ecx
mov dword [esi + 0x20a60], 0x40000000
mov dword [esi + 0x20a6c], ecx
call fcn.00468b40
add esp, 0xc
lea eax, [esi + 0xcc]
push 0xc000
push 0
push eax
call fcn.00468b40
mov dword [esi + 0x20128], 0xffffff
lea edi, [esi + 0x100cc]
mov dword [esi + 0x201cc], 0xffffff
add esp, 0xc
mov dword [esi + 0x20154], 0xffffff
mov ebx, 0x80
mov dword [esi + 0x201e4], 0xffffff
mov dword [esi + 0x20180], 0xffffff
mov dword [esi + 0x201fc], 0xffffff
mov dword [esi + 0x201ac], 0xffffff
mov dword [esi + 0x20214], 0xffffff
push 0x80
lea eax, [edi - 0x4000]
push 0
push eax
call fcn.00468b40
add esp, 0xc
push 0x80
push 0
push edi
call fcn.00468b40
add esp, 0xc
sub edi, 0xffffff80
sub ebx, 1
jne 0x554340
cmp dword [0x626e20], 1
mov dword [esi + 0x20a34], ebx
mov dword [esi + 0x20a38], ebx
mov dword [esi + 0x20a3c], ebx
mov dword [esi + 0x20a40], ebx
mov dword [esi + 0x20a44], ebx
mov dword [esi + 0x20a48], ebx
mov dword [esi + 0x20a4c], ebx
mov dword [esi + 0x20a50], ebx
mov dword [esi + 0x20a54], ebx
mov dword [esi + 0x20a58], ebx
jne 0x55446f
push 0x5ec588
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], ebx
push str.cdata.bin
push eax
call fcn.0046c5d4
mov eax, dword [ebp - 0xa4]
add esp, 0xc
test eax, eax
je 0x5544d0
push eax
push 1
push 0x2000
push 0x626e30
call fcn.0047004e
mov eax, dword [0x9c25b0]
add esp, 0x10
cmp dword [eax + 0x24], 0x7530
push dword [ebp - 0xa4]
jne 0x55445d
call fcn.0046bf19
add esp, 4
push str.DataFile_Error_r_n
call fcn.00586620
mov eax, dword [0x9c25c8]
add esp, 4
push ebx
push str.File_Error
push str.DataFile_Error.
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Closed_the_game_by_DataFileError2
call fcn.00586620
mov ecx, dword [0x9c25c8]
add esp, 4
push ebx
push ebx
push 0x10
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x5544ab
call fcn.0046bf19
add esp, 4
mov dword [0x626e20], 0
mov dword [esi + 0x20a20], 0
mov dword [esi + 0x20a24], 0
mov dword [esi + 0x20a28], 0
mov dword [esi + 0x20a2c], 0
mov dword [esi + 0xc4], 0
mov dword [0x9c2574], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
push str.DataFile_NotFound
call fcn.00586620
mov edi, dword [0x9c25b0]
add esp, 4
cmp dword [edi + 0x54], 0
jne 0x55455f
push 0x8c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00468b40
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov ax, word [ecx + 0x20]
mov word [ebp - 0x9a], ax
mov eax, 0x2bc
mov word [ebp - 0x9c], ax
cvttss2si eax, dword [ecx + 0x2c]
push 4
push 0
push 0
push eax
cvttss2si eax, dword [ecx + 0x28]
push eax
push 0
push 0
push str._08d___Critical_Data_Err_Cl__d__d__d__d__d___d
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.004459c0
add esp, 0x28
lea eax, [ebp - 0xa0]
push 0x8c
push eax
call fcn.005bdb60
mov edi, dword [0x9c25b0]
mov dword [edi + 0x54], 1
jmp 0x5544ab