Function at 0x4e7ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8eae
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x11c], edi
push 0x1e4
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
push 0x1e4
push 0
push esi
call fcn.00468b40
mov ecx, dword [0x9c25c8]
add esp, 0x10
xorps xmm3, xmm3
xorps xmm2, xmm2
mov eax, dword [ecx + 0x1c]
push 4
push 0
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x605750]
mov eax, dword [ecx + 0x18]
mov ecx, esi
cvtpd2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x605750]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
push 0xfffffffffffffffe
call fcn.004ce8b0
mov dword [ebp - 4], 0xffffffff
push 0x1e4
mov dword [edi + 0x3a7fc], eax
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 1
push 0x1e4
push 0
push esi
call fcn.00468b40
mov ecx, dword [0x9c25c8]
add esp, 0x10
xorps xmm3, xmm3
xorps xmm2, xmm2
mov eax, dword [ecx + 0x1c]
push 4
push 0xff000000
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x605750]
mov eax, dword [ecx + 0x18]
mov ecx, esi
cvtpd2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x605750]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
push 0xfffffffffffffffe
call fcn.004ce8b0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0x1e4
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 4], 2
push 0x1e4
push 0
push esi
call fcn.00468b40
mov ecx, dword [0x9c25c8]
add esp, 0x10
movss xmm3, dword [0x605270]
xorps xmm2, xmm2
mov eax, dword [ecx + 0x1c]
push 4
push 0xff000000
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x605750]
mov eax, dword [ecx + 0x18]
mov ecx, esi
cvtpd2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x605750]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
push 0xfffffffffffffffe
call fcn.004ce8b0
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x11c]
push edi
mov ecx, dword [ecx + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x44]
mov edi, dword [ebp - 0x11c]
push esi
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [edi + 0x28]
push dword [edi + 0x3a7fc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, 0x626c30
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e7f10
push 0xfa00
lea esi, [edi + 0x2adfc]
sub ecx, edx
push 0
push esi
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x118], esi
call fcn.00468b40
push 0x5ec588
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push str.UIEnding.bin
push eax
call fcn.0046c5d4
mov eax, dword [ebp - 0x114]
add esp, 0x18
test eax, eax
je 0x4e80a1
push eax
push 1
push 0xfa00
push esi
call fcn.0047004e
push dword [ebp - 0x114]
call fcn.0046bf19
add esp, 0x14
xor edx, edx
mov dword [ebp - 0x120], edx
nop dword [eax]
lea ecx, [esi + edx]
mov eax, edx
cdq
idiv dword [ebp - 0x128]
mov al, byte [edx + 0x626c30]
mov edx, dword [ebp - 0x120]
add al, dl
sub byte [ecx], al
inc edx
mov dword [ebp - 0x120], edx
cmp edx, 0xfa00
jl 0x4e7f90
mov dword [ebp - 0x120], 0
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e7fd0
sub ecx, edx
cmp ecx, 1
jbe 0x4e807e
mov edi, dword [edi + 0x3a7fc]
push 0xe4c
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 3
push 0xe4c
push 0
push esi
call fcn.00468b40
movd xmm0, dword [ebp - 0x120]
add esp, 0x10
cvtdq2ps xmm0, xmm0
mov ecx, esi
push 1
push 1
push 0
push 1
sub esp, 0x10
mov dword [esp + 0xc], 0x41a00000
mov dword [esp + 8], 0x44480000
movss dword [esp + 4], xmm0
mov dword [esp], 0
push 0xffffffffffffffff
push dword [ebp - 0x118]
push 0xfffffffffffffffe
call fcn.004cd940
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x118]
mov dword [eax + 4], edi
mov ecx, dword [edi + 0x10]
mov dword [eax + 0xc], ecx
mov dword [edi + 0x10], eax
mov ecx, dword [eax + 0xc]
mov edi, dword [ebp - 0x11c]
test ecx, ecx
je 0x4e807e
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x120]
sub esi, 0xffffff80
add eax, 0x14
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x120], eax
cmp eax, 0x2710
jl 0x4e7fc5
mov ecx, dword [edi + 0x3a7fc]
push 0
mov eax, dword [ecx]
call dword [eax + 0x60]
push 0xe4c
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 4
push 0xe4c
push 0
push esi
call fcn.00468b40
add esp, 0x10
mov ecx, esi
push 1
push 1
push 0
push 1
sub esp, 0x10
mov dword [esp + 0xc], 0x41a00000
mov dword [esp + 8], 0x44480000
mov dword [esp + 4], 0x41f00000
mov dword [esp], 0
push 0xffffffffffffffff
push str.Press_anykey_to_exit.
push 0xfffffffffffffffe
call fcn.004cd940
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x124]
mov dword [edi + 0x3a800], eax
mov dword [eax + 4], edx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0xc], ecx
mov dword [edx + 0x10], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4e813a
mov dword [ecx + 8], eax
mov ecx, dword [edi + 0x3a800]
push 0
mov eax, dword [ecx]
call dword [eax + 0x60]
mov eax, dword [0x9c25a4]
push 0
mov dword [eax + 0x1358], 0
mov dword [eax + 0x38c], 0
mov eax, dword [0x9c25ac]
mov ecx, dword [eax + 0x21a74]
mov eax, dword [ecx]
call dword [eax + 0x50]
push 0x10000
lea eax, [edi + 0x118]
push 0
push eax
call fcn.00468b40
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00468b40
lea eax, [ebp - 0x90]
push str.envField1817.trn
push eax
call fcn.00445aa0
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00468b40
lea eax, [ebp - 0x110]
push str.envField1817.dat
push eax
call fcn.00445aa0
push 0x20a70
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 5
push 0x20a70
push 0
push esi
call fcn.00468b40
add esp, 0x44
mov ecx, esi
call fcn.005540f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
mov dword [edi + 0xec], eax
call fcn.00554570
test eax, eax
jne 0x4e8235
cmp dword [edi + 0x54], eax
jne 0x4e822e
push eax
push eax
push eax
push eax
push 1
mov ecx, edi
call fcn.00593e20
mov dword [edi + 0x54], 1
mov ecx, dword [edi + 0xec]
mov dword [edi + 0x40], ecx
cvttss2si eax, dword [ecx + 0x20a28]
mov dword [0x626d50], eax
cvttss2si eax, dword [ecx + 0x20a2c]
mov dword [0x626d54], eax
call fcn.00554b50
push 0x404c
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 6
push 0x404c
push 0
push esi
call fcn.00468b40
add esp, 0x10
mov ecx, esi
push dword [edi + 0x40]
call fcn.0058c4c0
mov edx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xf4], edx
mov ecx, dword [edi + 0xe8]
mov dword [edx + 4], ecx
mov eax, dword [ecx + 0x10]
mov dword [edx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4e82bb
mov dword [eax + 8], edx
mov ecx, dword [edi + 0xf4]
lea eax, [ebp - 0x110]
push eax
call fcn.0058c610
test eax, eax
jne 0x4e831d
push str.DataFile_Not_Found_r_n
call fcn.00586620
push str.Closed_the_game_by_DataFileNotFound
call fcn.00586620
mov eax, dword [0x9c25c8]
add esp, 8
push 0
push str.File_Lost
push str.DataFile_Not_Found.
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x9c25c8]
push 0
push 0
push 0x10
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
jmp 0x4e8632
mov edx, dword [edi + 0xec]
mov ecx, dword [edi + 0xe8]
mov dword [edx + 4], ecx
mov eax, dword [ecx + 0x10]
mov dword [edx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4e833f
mov dword [eax + 8], edx
xor edx, edx
lea ecx, [edi + 0x218]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], ecx
jmp 0x4e8366
mov edi, dword [ebp - 0x11c]
lea esi, [edx + 0xc0cc]
mov edx, dword [ebp - 0x11c]
add esi, dword [edi + 0x40]
lea edi, [ecx - 0x100]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x114]
mov ecx, 0x20
mov edi, dword [ebp - 0x118]
add esi, 0xc14c
add esi, dword [edx + 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x114]
mov ecx, 0x20
mov edi, dword [ebp - 0x118]
add esi, 0xc1cc
add esi, dword [edx + 0x40]
add edi, 0x100
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x40]
mov ecx, 0x20
mov edx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
add edi, 0x200
lea esi, [edx + 0xc24c]
add edx, 0x200
add esi, eax
mov dword [ebp - 0x114], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x118]
add ecx, 0x400
mov dword [ebp - 0x118], ecx
cmp edx, 0x4000
jl 0x4e8360
push 0x16c
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 7
push 0x16c
push 0
push esi
call fcn.00468b40
add esp, 0x10
mov ecx, esi
call fcn.005bb6f0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov edi, dword [ebp - 0x11c]
mov dword [edi + 0x48], eax
mov edx, dword [eax]
call dword [edx + 0x38]
mov edx, dword [edi + 0x48]
mov ecx, dword [edi + 0x2c]
mov dword [edx + 4], ecx
mov eax, dword [ecx + 0x10]
mov dword [edx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4e8471
mov dword [eax + 8], edx
push 0x2290
call fcn.0046677d
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 8
push 0x2290
push 0
push esi
call fcn.00468b40
add esp, 0x10
mov ecx, esi
call fcn.005b9ad0
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x44], eax
mov dword [eax + 4], edi
mov ecx, dword [edi + 0x10]
mov dword [eax + 0xc], ecx
mov dword [edi + 0x10], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4e84c1
mov dword [ecx + 8], eax
mov ecx, dword [edi + 0x44]
push 0
call fcn.005b9eb0
mov eax, dword [edi + 0x44]
push 0xc8
push 0
mov dword [eax + 0x100], 0x4e20
lea eax, [edi + 0x26eb4]
push eax
call fcn.00468b40
mov ecx, dword [0x9c25ac]
add esp, 0xc
cmp dword [0x626d58], 1
movss xmm1, dword [0x6052d8]
mov eax, dword [ecx + 0x21a74]
mov dword [eax + 0x78], 0x4513c000
movss dword [eax + 0x7c], xmm1
mov eax, dword [ecx + 0x21a74]
mov dword [eax + 0x28], 0x3f490fdb
mov eax, dword [ecx + 0x21a74]
mov dword [eax + 0x2c], 0
mov dword [edi + 0x26ea0], 0
jne 0x4e8548
mov ecx, edi
call fcn.004e7310
mov ecx, dword [0x9c25ac]
mov eax, dword [ecx + 0x21a74]
mov ecx, dword [0x9c25b4]
mov dword [eax + 0x8c], 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
cmp dword [0x626d58], 1
mov dword [edi + 0x20120], eax
jne 0x4e8582
push str.UIEndCamAction
mov ecx, edi
call fcn.00596500
jmp 0x4e85ef
xor eax, eax
mov dword [edi + 0x20134], 1
push 0x6d44
push eax
mov word [edi + 0x2013e], ax
lea eax, [edi + 0x20154]
push eax
call fcn.00468b40
add esp, 0xc
mov dword [edi + 0x20138], 1
xor eax, eax
mov dword [edi + 0x20140], 0x4513c000
mov word [edi + 0x2013c], ax
mov dword [edi + 0x20144], 0x40000000
mov dword [edi + 0x20148], 0x450dc000
mov dword [edi + 0x2014c], 0x3fc90fdb
mov dword [edi + 0x20150], 0xbdb2b8c3
mov ecx, dword [0x9c25c8]
mov esi, 1
mov word [edi + 0x2011c], si
mov eax, dword [ecx + 0x174]
test eax, eax
je 0x4e8621
mov eax, dword [eax + 4]
mov edx, dword [eax + 4]
test edx, edx
je 0x4e8621
mov eax, dword [edx]
push edx
call dword [eax + 0x24]
mov ecx, dword [0x9c25c8]
cmp dword [ecx + 0x174], 0
je 0x4e8630
mov dword [edi + 0x26ea0], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret