Function at 0x44f840
Capabilities:
Get common file path
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d13b
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4b1240]
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
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x428], esp
xor ebx, ebx
push 7
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.Thunder
mov byte [ecx], bl
call fcn.00414ba0
mov ecx, dword [0x4b290c]
call fcn.00402870
lea eax, [ebp - 0x410]
push str.DatamoviesThunder.bik
push eax
call fcn.00409550
lea ecx, [ebp - 0x410]
push 0x497df4
push ecx
call fcn.004644f9
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x44fdd9
push ebx
push 0x69fe0
push edi
call fcn.00464bad
push edi
push 1
lea edx, [ebp - 0x434]
push 4
push edx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x438], ebx
call fcn.0046490d
add esp, 0x1c
cmp dword [ebp - 0x434], ebx
jle 0x44fb30
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
lea eax, [ebp - 0x45c]
push eax
mov ecx, 0x4b61f8
mov dword [ebp - 4], ebx
call fcn.0044e910
mov ebx, dword [0x4b61f8]
mov ecx, dword [0x4b61fc]
sub ecx, ebx
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
lea esi, [edx + edx*8]
push edi
add esi, esi
push 1
add esi, esi
lea edx, [esi + ebx]
push 1
push edx
call fcn.0046490d
mov eax, dword [0x4b61f8]
push edi
push 1
lea ecx, [esi + eax + 4]
push 4
push ecx
call fcn.0046490d
mov edx, dword [0x4b61f8]
push edi
push 1
lea eax, [esi + edx + 8]
push 4
push eax
call fcn.0046490d
mov ecx, dword [0x4b61f8]
push edi
push 1
lea edx, [esi + ecx + 0xc]
push 4
push edx
call fcn.0046490d
mov eax, dword [0x4b61f8]
add esp, 0x40
push edi
push 1
lea ecx, [esi + eax + 0x10]
push 4
push ecx
call fcn.0046490d
push edi
push 1
lea edx, [ebp - 0x42c]
push 4
push edx
call fcn.0046490d
mov eax, dword [ebp - 0x42c]
add esp, 0x20
test eax, eax
jle 0x44fa18
xor ecx, ecx
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00462b8e
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx + ecx*4]
push edi
add ecx, ecx
push 1
add ecx, ecx
push ecx
push eax
mov dword [ebp - 0x438], eax
call fcn.0046490d
add esp, 0x14
jmp 0x44fa76
mov ecx, dword [0x4b61fc]
mov edx, dword [ebp - 0x428]
push edx
lea eax, [ecx - 0x24]
push eax
push ecx
add eax, 0x24
push eax
call fcn.00438640
mov eax, dword [0x4b61fc]
lea ebx, [eax - 0x24]
add esp, 0x10
mov dword [ebp - 0x430], eax
cmp ebx, eax
je 0x44fa6e
jmp 0x44fa50
push ebx
push 0x4b6204
call fcn.0044cca0
add ebx, 0x24
add esp, 8
cmp ebx, dword [ebp - 0x430]
jne 0x44fa50
mov eax, dword [0x4b61fc]
sub eax, 0x24
mov dword [0x4b61fc], eax
cmp dword [ebp - 0x42c], 0
jle 0x44fafb
mov ebx, dword [ebp - 0x438]
mov dword [ebp - 0x430], 0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x420], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x418], eax
mov eax, dword [0x4b61f8]
lea edx, [ebp - 0x424]
mov dword [ebp - 0x414], ecx
push edx
lea ecx, [esi + eax + 0x14]
call fcn.00435560
mov eax, dword [ebp - 0x430]
inc eax
add ebx, 0x14
mov dword [ebp - 0x430], eax
cmp eax, dword [ebp - 0x42c]
jl 0x44fa93
mov ecx, dword [ebp - 0x438]
push ecx
call fcn.00464dfa
add esp, 4
mov eax, dword [ebp - 0x448]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x44fb15
push eax
call fcn.00462d9e
add esp, 4
mov eax, dword [ebp - 0x428]
inc eax
xor ebx, ebx
mov dword [ebp - 0x428], eax
cmp eax, dword [ebp - 0x434]
jl 0x44f911
push edi
call fcn.004643ac
lea edx, [ebp - 0x410]
push edx
call fcn.00408e60
mov eax, dword [0x4b61f8]
add esp, 8
cmp eax, dword [0x4b61fc]
je 0x44fdd9
mov ecx, dword [eax + 0x14]
cmp ecx, dword [eax + 0x18]
je 0x44fdd9
cmp byte [eax], 0
je 0x44fb6c
mov byte [eax], 0
jmp 0x44fb74
cmp dword [eax + 8], ebx
jle 0x44fb79
dec dword [eax + 8]
mov eax, dword [0x4b61f8]
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + 0x10]
cmp ecx, 0x30
je 0x44fb8d
cmp ecx, 0x31
jne 0x44fdd9
sub ecx, 0x30
je 0x44fcae
dec ecx
jne 0x44fdd9
mov ecx, dword [0x4c5604]
cmp byte [ecx + 0xf4], 0
mov esi, dword [sym.imp.USER32.dll_SetTimer]
jne 0x44fbdc
fldz
mov byte [ecx + 0xf4], 1
mov eax, dword [0x4c5604]
fstp dword [eax + 0x88]
mov ecx, dword [0x4b5978]
push ebx
push 0x1e
push 0x472
push ecx
call esi
mov eax, dword [0x4b61f8]
mov edx, dword [0x4c5240]
cmp byte [edx + 0xf4], 0
jne 0x44fc4c
mov eax, dword [0x4b5be0]
fld1
fst dword [eax + 0x88]
push ebx
mov ecx, dword [0x4c58dc]
fstp dword [ecx + 0x88]
mov edx, dword [0x4c5240]
fldz
mov byte [edx + 0xf4], 1
mov eax, dword [0x4c5240]
fst dword [eax + 0x88]
mov ecx, dword [0x4c5160]
mov byte [ecx + 0xf4], 1
mov edx, dword [0x4c5160]
push 0x1e
fstp dword [edx + 0x88]
mov eax, dword [0x4b5978]
push 0x474
push eax
call esi
mov eax, dword [0x4b61f8]
cmp dword [eax + 8], ebx
jne 0x44fdb8
xor eax, eax
cmp byte [eax + 0x4b54f8], 0
jne 0x44fc68
inc eax
cmp eax, 5
jl 0x44fc57
jmp 0x44fc6f
mov byte [0x4a86ab], 0
push 1
push 1
push 0x3c
call fcn.00409510
add esp, 0xc
cmp byte [0x4a86ab], 0
je 0x44fdb8
mov ecx, dword [0x4b5978]
push ebx
push 0x12c
push 0x470
push ecx
call esi
push str._PlayBgEvMov__NIGHT_2_TURTLE_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x44fdb8
mov ecx, dword [0x4c5604]
cmp byte [ecx + 0xf4], 0
mov esi, dword [sym.imp.USER32.dll_SetTimer]
jne 0x44fced
fldz
mov byte [ecx + 0xf4], 1
mov edx, dword [0x4c5604]
fstp dword [edx + 0x88]
mov eax, dword [0x4b5978]
push ebx
push 0x1e
push 0x472
push eax
call esi
mov eax, dword [0x4b61f8]
mov ecx, dword [0x4b5be0]
cmp byte [ecx + 0xf4], 0
jne 0x44fd5e
mov edx, dword [0x4c5240]
fld1
fst dword [edx + 0x88]
push ebx
mov eax, dword [0x4c5160]
fstp dword [eax + 0x88]
mov ecx, dword [0x4b5be0]
fldz
mov byte [ecx + 0xf4], 1
mov edx, dword [0x4b5be0]
fst dword [edx + 0x88]
mov eax, dword [0x4c58dc]
mov byte [eax + 0xf4], 1
mov ecx, dword [0x4c58dc]
push 0x1e
fstp dword [ecx + 0x88]
mov edx, dword [0x4b5978]
push 0x473
push edx
call esi
mov eax, dword [0x4b61f8]
cmp dword [eax + 8], ebx
jne 0x44fdb8
xor eax, eax
jmp 0x44fd70
cmp byte [eax + 0x4b54f8], 0
jne 0x44fe9b
inc eax
cmp eax, 5
jl 0x44fd70
cmp byte [0x4a86ab], 0
je 0x44fdaa
mov eax, dword [0x4b5978]
push ebx
push 0x12c
push 0x470
push eax
call esi
push str._PlayBgEvMov__NIGHT_1_TURTLE_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 1
push 1
push 0x3c
call fcn.00409510
add esp, 0xc
push ebx
push ebx
push 5
call fcn.00409510
push 1
push 1
push 6
call fcn.00409510
mov dword [0x4b54f0], 1
add esp, 0x18
lea ecx, [ebp - 0x110]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x210]
push 0x49864c
push edx
call fcn.00463940
lea eax, [ebp - 0x210]
add esp, 8
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44fe07
lea edi, [ebp - 0x110]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x44fe17
fld1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [ebp - 0x110]
fst dword [esp]
push 1
sub esp, 0x10
fst dword [esp + 0xc]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x428], esp
push 7
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.Thunder
mov byte [ecx], 0
call fcn.00414ba0
mov ecx, dword [0x4b290c]
call fcn.00402ce0
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.00463931
mov esp, ebp
pop ebp
ret
mov byte [0x4a86ab], 0
jmp 0x44fdaa