Function at 0x4df840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.MeshMeshTextureList.bin
lea eax, [ebp - 0x88]
mov edi, ecx
push 0x5ec718
push eax
call fcn.00445aa0
add esp, 0xc
lea eax, [ebp - 0x88]
push 0x5ec588
push eax
call fcn.0046c5bd
mov esi, eax
add esp, 8
test esi, esi
jne 0x4df8ab
push str.Cannot_init_model_texture_list__n
call fcn.00586620
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
push esi
push 1
lea eax, [edi + 0x6fe8c]
push 0x108000
push eax
call fcn.0047004e
push esi
call fcn.0046bf19
xor esi, esi
lea ebx, [edi + 0x6ff8b]
add esp, 0x14
mov dword [ebp - 0x98], esi
xor eax, eax
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], ebx
cmp byte [ebx - 0xff], 0
lea ecx, [ebx - 0xff]
jne 0x4dfa01
mov eax, dword [0x1ff9a2c]
mov edx, dword [0x1ff9a28]
sub eax, edx
sar eax, 3
imul eax, eax, 0xeafeafeb
mov dword [ebp - 0xa0], edx
cmp esi, eax
jge 0x4dfa1f
mov edi, dword [ebp - 0x8c]
lea esi, [edi + 0x10]
add esi, edx
cmp dword [edi + edx + 0x614], 1
jle 0x4df9ac
mov edi, ebx
mov ebx, 6
cmp byte [esi], 0
je 0x4df990
push 0x80
lea eax, [edi - 0xff]
push esi
push eax
call fcn.0046bca0
mov edx, dword [ebp - 0xa0]
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov al, byte [eax + edx + 0x610]
mov cl, al
cmp al, 0x41
je 0x4df98e
cmp al, 0x43
je 0x4df98e
cmp al, 0x4e
je 0x4df98e
mov eax, dword [ebp - 0x8c]
mov cl, 0x4e
mov byte [eax + edx + 0x610], 0x4e
mov byte [edi], cl
add edi, 0x108
sub esi, 0xffffff80
sub ebx, 1
jne 0x4df943
mov ebx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x8c]
jmp 0x4df9e2
push 0x80
push esi
push ecx
call fcn.0046bca0
mov edx, dword [ebp - 0xa0]
add esp, 0xc
mov al, byte [edi + edx + 0x610]
mov cl, al
cmp al, 0x41
je 0x4df9e0
cmp al, 0x43
je 0x4df9e0
cmp al, 0x4e
je 0x4df9e0
mov byte [edi + edx + 0x610], 0x4e
mov cl, 0x4e
mov byte [ebx], cl
mov esi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x90]
inc esi
add edi, 0x618
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x8c], edi
inc eax
add ebx, 0x108
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], ebx
cmp eax, 0x1000
jl 0x4df8f0
mov edi, dword [ebp - 0x9c]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x94], ecx
xor ebx, ebx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ebx
nop dword [eax]
cmp byte [edi - 0xff], 0
jne 0x4dfb0b
mov eax, dword [0x1ff9ad0]
mov edx, dword [0x1ff9acc]
sub eax, edx
sar eax, 2
imul eax, eax, 0x538b0a25
mov dword [ebp - 0x98], edx
cmp ecx, eax
jge 0x4dfb29
lea esi, [edx + 0x30]
add esi, ebx
mov ebx, 6
nop dword [eax + eax]
mov al, byte [esi]
test al, al
je 0x4dfad2
cmp al, 0xa
je 0x4dfad2
push 0x80
lea eax, [edi - 0xff]
push esi
push eax
call fcn.0046bca0
mov edx, dword [ebp - 0x98]
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov al, byte [eax + edx + 0x6b0]
mov cl, al
cmp al, 0x41
je 0x4dfad0
cmp al, 0x43
je 0x4dfad0
cmp al, 0x4e
je 0x4dfad0
mov eax, dword [ebp - 0x8c]
mov cl, 0x4e
mov byte [eax + edx + 0x6b0], 0x4e
mov byte [edi], cl
add edi, 0x108
sub esi, 0xffffff80
sub ebx, 1
jne 0x4dfa80
mov ecx, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x8c]
inc ecx
mov eax, dword [ebp - 0x90]
add ebx, 0x6b4
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x8c], ebx
inc eax
add edi, 0x108
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x9c], edi
cmp eax, 0x1000
jl 0x4dfa40
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046676f
mov esp, ebp
pop ebp
ret