Function at 0x65bea0
Capabilities:
Copy file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push esi
mov dword [ebp - 0x30], 0
push 0xf00
push 0
push 0x28012e8
call fcn.0067d630
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0065e750
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.PSX_create_tims_for_level_d_n
call fcn.00495230
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
push str.c:levels_dpages.dat
lea eax, [ebp - 0x130]
push eax
call fcn.0041e320
add esp, 0xc
push 0x716764
lea ecx, [ebp - 0x130]
push ecx
call fcn.00401720
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x65bf47
mov edx, dword [ebp - 0x10]
push edx
push 2
push 1
lea eax, [ebp - 4]
push eax
call fcn.006b7750
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401700
add esp, 4
mov dx, word [ebp - 4]
mov word [0x27f02e4], dx
jmp 0x65bf67
mov eax, 1
test eax, eax
je 0x65bf67
push 0xcfb
push str.C:devworkspaces_repo_clonesClean_UrbanChaosMuckyFoot_UrbanChaos_fallenSource_supermap.cpp
push str.ASSERT_TRIGGERED
call fcn.0049b8f0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
push str.c:levels_d_tex16.tom
lea edx, [ebp - 0x130]
push edx
call fcn.0041e320
add esp, 0xc
push 0x716764
lea eax, [ebp - 0x130]
push eax
call fcn.00401720
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x65bfff
mov ecx, dword [ebp - 0x10]
push ecx
push 0x4000
push 2
mov edx, 0x80
imul eax, edx, 0
mov ecx, 2
imul edx, ecx, 0
lea eax, [eax + edx + 0x27f02e8]
push eax
call fcn.006b7750
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401700
add esp, 4
push 0x4000
push 0xff
mov edx, 0x80
shl edx, 7
mov eax, 2
imul ecx, eax, 0
lea edx, [edx + ecx + 0x27f02e8]
push edx
call fcn.0067d630
add esp, 0xc
jmp 0x65c01f
mov eax, 1
test eax, eax
je 0x65c01f
push 0xd0b
push str.C:devworkspaces_repo_clonesClean_UrbanChaosMuckyFoot_UrbanChaos_fallenSource_supermap.cpp
push str.ASSERT_TRIGGERED
call fcn.0049b8f0
add esp, 0xc
movzx ecx, word [ebp - 4]
sar ecx, 6
add ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str.c:levels_d_tex_02d.tom
lea eax, [ebp - 0x130]
push eax
call fcn.0041e320
add esp, 0x10
push 0x716764
lea ecx, [ebp - 0x130]
push ecx
call fcn.00401720
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x65c098
mov edx, dword [ebp - 0x10]
push edx
push 0x8000
push 1
mov eax, 0x80
imul ecx, eax, 0
mov edx, 1
imul eax, edx, 0
lea ecx, [ecx + eax + 0x27f82e8]
push ecx
call fcn.006b7750
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401700
add esp, 4
jmp 0x65c0b8
mov eax, 1
test eax, eax
je 0x65c0b8
push 0xd17
push str.C:devworkspaces_repo_clonesClean_UrbanChaosMuckyFoot_UrbanChaos_fallenSource_supermap.cpp
push str.ASSERT_TRIGGERED
call fcn.0049b8f0
add esp, 0xc
movzx ecx, word [ebp - 4]
and ecx, 0x3f
mov dword [ebp - 0x30], ecx
movzx edx, word [ebp - 4]
sar edx, 6
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00661310
add esp, 0xc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 1
jmp 0x65c0ef
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
movzx eax, word [0x770448]
cmp dword [ebp - 0x28], eax
jge 0x65c2d2
imul ecx, dword [ebp - 0x28], 0x1c
add ecx, dword [0x2596fc4]
mov dword [ebp - 8], ecx
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 8]
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [edx + ecx]
and edx, 0xc0
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
or edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x282
jg 0x65c17a
cmp dword [ebp - 0x18], 0x282
je case.0x65c199.29
mov ecx, dword [ebp - 0x18]
sub ecx, 0x55
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 4
ja case.0x65c199.3
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x65c5c0]
mov eax, dword [ebp - 0x18]
sub eax, 0x283
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x22
ja case.0x65c199.3
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x65c5e8]
jmp dword [edx*4 + 0x65c5d4]
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x18]
or ecx, 0x8000
mov edx, dword [ebp - 8]
mov word [edx + 0x18], cx
mov dword [ebp - 0x1c], 0x55
jmp case.0x65c199.3
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x18]
or ecx, 0x8000
mov edx, dword [ebp - 8]
mov word [edx + 0x18], cx
mov dword [ebp - 0x1c], 0x56
jmp case.0x65c199.3
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x18]
or ecx, 0x8000
mov edx, dword [ebp - 8]
mov word [edx + 0x18], cx
mov dword [ebp - 0x1c], 0x58
jmp case.0x65c199.3
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x18]
or ecx, 0x8000
mov edx, dword [ebp - 8]
mov word [edx + 0x18], cx
mov dword [ebp - 0x1c], 0x59
movzx eax, word [ebp - 4]
sar eax, 6
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x30]
push edx
movzx eax, word [ebp - 0x1c]
push eax
call fcn.0065f220
add esp, 0x10
mov dword [ebp - 0x2c], eax
movzx ecx, word [ebp - 4]
sar ecx, 6
shl ecx, 6
mov edx, dword [ebp - 0x2c]
sub edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 8]
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [eax + edx]
and eax, 0xffffff3f
mov ecx, 1
imul edx, ecx, 0
mov ecx, 2
imul ecx, ecx, 0
mov esi, dword [ebp - 8]
lea ecx, [esi + ecx + 8]
mov byte [ecx + edx], al
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 8]
mov eax, 1
imul ecx, eax, 0
mov eax, dword [ebp - 0x2c]
sar eax, 2
and eax, 0xc0
movzx ecx, byte [edx + ecx]
or ecx, eax
mov edx, 1
imul eax, edx, 0
mov edx, 2
imul edx, edx, 0
mov esi, dword [ebp - 8]
lea edx, [esi + edx + 8]
mov byte [edx + eax], cl
mov eax, dword [ebp - 0x2c]
and eax, 0xff
mov ecx, dword [ebp - 8]
mov byte [ecx], al
jmp 0x65c0e6
mov dword [ebp - 0x28], 1
jmp 0x65c2e4
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
movzx eax, word [0x770444]
cmp dword [ebp - 0x28], eax
jge 0x65c4c7
imul ecx, dword [ebp - 0x28], 0x22
add ecx, dword [0x2596fc0]
mov dword [ebp - 0xc], ecx
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0xa]
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [edx + ecx]
and edx, 0xc0
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
shl eax, 2
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
or edx, dword [ebp - 0x24]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x282
jg 0x65c36f
cmp dword [ebp - 0x20], 0x282
je case.0x65c38e.29
mov ecx, dword [ebp - 0x20]
sub ecx, 0x55
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 4
ja case.0x65c38e.3
mov edx, dword [ebp - 0x20]
jmp dword [edx*4 + 0x65c60c]
mov eax, dword [ebp - 0x20]
sub eax, 0x283
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x22
ja case.0x65c38e.3
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 0x65c634]
jmp dword [edx*4 + 0x65c620]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x1e]
or ecx, 0x8000
mov edx, dword [ebp - 0xc]
mov word [edx + 0x1e], cx
mov dword [ebp - 0x24], 0x55
jmp case.0x65c38e.3
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x1e]
or ecx, 0x8000
mov edx, dword [ebp - 0xc]
mov word [edx + 0x1e], cx
mov dword [ebp - 0x24], 0x56
jmp case.0x65c38e.3
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x1e]
or ecx, 0x8000
mov edx, dword [ebp - 0xc]
mov word [edx + 0x1e], cx
mov dword [ebp - 0x24], 0x58
jmp case.0x65c38e.3
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x1e]
or ecx, 0x8000
mov edx, dword [ebp - 0xc]
mov word [edx + 0x1e], cx
mov dword [ebp - 0x24], 0x59
movzx eax, word [ebp - 4]
sar eax, 6
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x30]
push edx
movzx eax, word [ebp - 0x24]
push eax
call fcn.0065f220
add esp, 0x10
mov dword [ebp - 0x2c], eax
movzx ecx, word [ebp - 4]
sar ecx, 6
shl ecx, 6
mov edx, dword [ebp - 0x2c]
sub edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0xa]
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [eax + edx]
and eax, 0xffffff3f
mov ecx, 1
imul edx, ecx, 0
mov ecx, 2
imul ecx, ecx, 0
mov esi, dword [ebp - 0xc]
lea ecx, [esi + ecx + 0xa]
mov byte [ecx + edx], al
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0xa]
mov eax, 1
imul ecx, eax, 0
mov eax, dword [ebp - 0x2c]
sar eax, 2
and eax, 0xc0
movzx ecx, byte [edx + ecx]
or ecx, eax
mov edx, 1
imul eax, edx, 0
mov edx, 2
imul edx, edx, 0
mov esi, dword [ebp - 0xc]
lea edx, [esi + edx + 0xa]
mov byte [edx + eax], cl
mov eax, dword [ebp - 0x2c]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
mov byte [ecx], al
jmp 0x65c2db
movzx edx, word [ebp - 4]
sar edx, 6
mov eax, dword [ebp - 0x30]
sar eax, 6
lea ecx, [edx + eax + 1]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str.c:levels_d_tex_02d.tim
lea eax, [ebp - 0x130]
push eax
call fcn.0041e320
add esp, 0x10
push 0
movzx ecx, word [ebp - 4]
sar ecx, 6
mov edx, dword [ebp - 0x30]
sar edx, 6
add ecx, edx
push ecx
push 0x27f82e8
lea eax, [ebp - 0x130]
push eax
call fcn.0065fd90
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
push str.c:levels_d_tex18.tim
lea edx, [ebp - 0x130]
push edx
call fcn.0041e320
add esp, 0xc
push 0xff
push 0
push 0xf
lea eax, [ebp - 0x130]
push eax
call fcn.0065ff90
add esp, 0x10
movzx ecx, word [0x11d761e]
push ecx
push str.n:urbanchaos_texturesworld_d_sky.tga
lea edx, [ebp - 0x130]
push edx
call fcn.0041e320
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
push str.c:levels_d_sky.tga
lea ecx, [ebp - 0x194]
push ecx
call fcn.0041e320
add esp, 0xc
push 0
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x65c5b5
mov ecx, 1
test ecx, ecx
je 0x65c5b5
push 0xda9
push str.C:devworkspaces_repo_clonesClean_UrbanChaosMuckyFoot_UrbanChaos_fallenSource_supermap.cpp
push str.ASSERT_TRIGGERED
call fcn.0049b8f0
add esp, 0xc
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret