Function at 0x60cf80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f796f
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x766480]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov eax, dword [edi + 0x392c]
mov byte [edi + 0x391c], 0
mov dword [edi + 0x3918], 0
test eax, eax
je 0x60cfe7
push eax
call fcn.006dfeff
add esp, 4
mov dword [edi + 0x392c], 0
mov eax, dword [edi + 0x3914]
test eax, eax
je 0x60d032
push 0x60c640
push dword [eax - 4]
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push 0x904
push eax
call fcn.006dff8b
imul eax, dword [esi], 0x904
add eax, 4
push eax
push esi
call fcn.006e00a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x3914], 0
push 0x100
lea eax, [ebp - 0x110]
mov dword [edi + 0x3920], 0
push 0
push eax
mov dword [edi + 0x3924], 0
mov byte [edi + 0x391c], 0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [edi + 0x3918], eax
xor ecx, ecx
nop
mov al, byte [ecx + str.c:MP_ProjectWeatherColorTable.dat]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x111], al
test al, al
jne 0x60d070
lea eax, [ebp - 0x110]
push 0x2e
push eax
call sub.VCRUNTIME140.dll_strrchr
push 0x7062c4
mov word [eax + 1], 0x6172
mov byte [eax + 3], 0x77
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x60d830
push 0x40000
call fcn.006dff04
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
push 0x40000
push eax
mov dword [edi + 0x392c], eax
call ebx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x18
cmp dword [ebp - 0x44c], 0
je 0x60d830
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x440], esi
mov edx, 0x904
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x60d153
push 0x60c640
push 0x60c040
push dword [ebp + 0xc]
mov dword [eax], esi
lea esi, [eax + 4]
push 0x904
push esi
call fcn.006dff12
jmp 0x60d155
xor esi, esi
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x3914], esi
mov dword [ebp - 0x448], eax
cmp dword [ebp + 0xc], eax
jle 0x60d829
mov dword [ebp - 0x438], eax
nop dword [eax]
mov ecx, dword [ebp - 0x44c]
push 0x100
push 0
mov esi, dword [ecx + eax*4]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x430], esi
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.c:MP_ProjectWeatherColorTable.dat]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x211], al
test al, al
jne 0x60d1c0
lea eax, [ebp - 0x210]
push 0x2e
push eax
call sub.VCRUNTIME140.dll_strrchr
push esi
push str.__d.dat
push eax
call fcn.0044f6e0
lea eax, [ebp - 0x210]
push 0x7062c4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edx, dword [edi + 0x3914]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x60dc8e
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x430]
push ecx
push str.grass__d.dds
mov dword [edx + eax], ecx
lea eax, [ebp - 0x310]
push eax
call fcn.0044f6e0
add esp, 0xc
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.c:MP_projectTextureNatureObject]
lea ecx, [ecx + 1]
mov byte [ecx + 0x1a4e677], al
test al, al
jne 0x60d240
push 0x100
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x310]
push eax
push str.c:MP_projectTextureNatureObject
lea eax, [ebp - 0x410]
push 0x709b60
push eax
call fcn.0044f6e0
lea eax, [ebp - 0x410]
push 0x7062c4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x24
test eax, eax
je 0x60d2fe
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push 0x118
call fcn.006df8c3
add esp, 8
mov dword [ebp - 0x450], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x60d2cc
mov ecx, eax
call fcn.00662800
mov edx, eax
jmp 0x60d2ce
xor edx, edx
mov eax, dword [edi + 0x3914]
mov ecx, dword [ebp - 0x438]
push 0
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + eax + 4], edx
lea edx, [ebp - 0x310]
mov eax, dword [edi + 0x3914]
push edx
mov ecx, dword [ecx + eax + 4]
mov eax, dword [ecx]
call dword [eax]
jmp 0x60d312
mov eax, dword [edi + 0x3914]
mov ecx, dword [ebp - 0x438]
mov dword [ecx + eax + 4], 0
push esi
push 1
lea eax, [ebp - 0x43c]
push 3
push eax
call ebx
add esp, 0x10
cmp byte [ebp - 0x43c], 0x4e
jne 0x60d84e
cmp byte [ebp - 0x43b], 0x45
jne 0x60d84e
cmp byte [ebp - 0x43a], 0x57
jne 0x60d84e
mov eax, dword [ebp - 0x438]
add eax, 8
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x42c], eax
nop dword [eax]
push esi
push 1
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x64], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0xc8], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
add esp, 0x40
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x12c], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x190], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [ebp - 0x430]
mov edx, dword [edi + 0x3914]
add ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [ecx + edx + 0x328], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [ebp - 0x430]
mov edx, dword [edi + 0x3914]
add ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [ecx + edx + 0x32c], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov edx, dword [edi + 0x3914]
add esp, 0x40
mov ecx, dword [ebp - 0x430]
add ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [ecx + edx + 0x330], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x4b0], eax
lea eax, [ebp - 0x434]
push 4
push eax
call ebx
mov eax, dword [edi + 0x3914]
mov ecx, dword [ebp - 0x42c]
movss xmm0, dword [ebp - 0x434]
push esi
push 1
movss dword [ecx + eax + 0x1f4], xmm0
lea eax, [ebp - 0x434]
push 4
push eax
call ebx
mov eax, dword [edi + 0x3914]
mov ecx, dword [ebp - 0x42c]
movss xmm0, dword [ebp - 0x434]
push esi
push 1
movss dword [ecx + eax + 0x258], xmm0
lea eax, [ebp - 0x434]
push 4
push eax
call ebx
mov eax, dword [edi + 0x3914]
add esp, 0x40
mov ecx, dword [ebp - 0x42c]
movss xmm0, dword [ebp - 0x434]
push esi
push 1
movss dword [ecx + eax + 0x2bc], xmm0
lea eax, [ebp - 0x434]
push 4
push eax
call ebx
mov eax, dword [edi + 0x3914]
mov ecx, dword [ebp - 0x42c]
movss xmm0, dword [ebp - 0x434]
push esi
push 1
movss dword [ecx + eax + 0x44c], xmm0
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov edx, dword [ebp - 0x42c]
add esp, 0x20
mov ecx, dword [edi + 0x3914]
mov eax, dword [ebp - 0x428]
mov dword [edx + ecx + 0x898], eax
add edx, 4
mov eax, dword [ebp - 0x430]
add eax, 0xc
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], eax
cmp eax, 0x12c
jl 0x60d370
mov eax, dword [ebp - 0x440]
add eax, 0x578
mov dword [ebp - 0x430], 0x19
mov dword [ebp - 0x42c], eax
push esi
push 1
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx - 0x64], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [ecx + edx], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x64], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
add esp, 0x40
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0xc8], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x12c], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x190], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x1f4], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
add esp, 0x40
mov eax, dword [ebp - 0x428]
mov edx, dword [ebp - 0x42c]
push esi
push 1
mov dword [edx + ecx + 0x258], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov edx, dword [ebp - 0x42c]
add esp, 0x10
mov ecx, dword [edi + 0x3914]
mov eax, dword [ebp - 0x428]
mov dword [edx + ecx + 0x2bc], eax
add edx, 4
sub dword [ebp - 0x430], 1
mov dword [ebp - 0x42c], edx
jne 0x60d5f7
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
jne 0x60d7ff
push esi
push 1
lea eax, [ebp - 0x444]
push 2
push eax
call ebx
mov ax, word [ebp - 0x444]
add esp, 0x10
cmp al, 0x4e
jne 0x60d7ff
cmp ah, 0x43
jne 0x60d7ff
push esi
push 1
lea eax, [ebp - 0x424]
push 0x14
push eax
call ebx
movss xmm0, dword [ebp - 0x424]
add esp, 0x10
movss dword [0xf89794], xmm0
movss xmm0, dword [ebp - 0x420]
movss dword [0xf89798], xmm0
movss xmm0, dword [ebp - 0x41c]
movss dword [0xf8979c], xmm0
movss xmm0, dword [ebp - 0x418]
movss dword [0xf897dc], xmm0
movss xmm0, dword [ebp - 0x414]
movss dword [0xf897f8], xmm0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x448]
add esp, 4
add dword [ebp - 0x438], 0x904
inc eax
mov dword [ebp - 0x448], eax
cmp eax, dword [ebp + 0xc]
jl 0x60d180
mov byte [edi + 0x391c], 1
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.006dfb52
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [ebp - 0x438]
add esp, 0xc
add eax, 8
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x42c], eax
nop dword [eax + eax]
push esi
push 1
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x64], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0xc8], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
add esp, 0x40
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x12c], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x190], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [ebp - 0x430]
mov edx, dword [edi + 0x3914]
add ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [ecx + edx + 0x328], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [ebp - 0x430]
mov edx, dword [edi + 0x3914]
add ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [ecx + edx + 0x32c], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov edx, dword [edi + 0x3914]
add esp, 0x40
mov ecx, dword [ebp - 0x430]
add ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [ecx + edx + 0x330], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x4b0], eax
lea eax, [ebp - 0x434]
push 4
push eax
call ebx
mov eax, dword [edi + 0x3914]
mov ecx, dword [ebp - 0x42c]
movss xmm0, dword [ebp - 0x434]
push esi
push 1
movss dword [ecx + eax + 0x1f4], xmm0
lea eax, [ebp - 0x434]
push 4
push eax
call ebx
mov eax, dword [edi + 0x3914]
mov ecx, dword [ebp - 0x42c]
movss xmm0, dword [ebp - 0x434]
push esi
push 1
movss dword [ecx + eax + 0x258], xmm0
lea eax, [ebp - 0x434]
push 4
push eax
call ebx
mov eax, dword [edi + 0x3914]
add esp, 0x40
mov ecx, dword [ebp - 0x42c]
movss xmm0, dword [ebp - 0x434]
push esi
push 1
movss dword [ecx + eax + 0x2bc], xmm0
lea eax, [ebp - 0x434]
push 4
push eax
call ebx
mov ecx, dword [ebp - 0x42c]
add esp, 0x10
mov eax, dword [edi + 0x3914]
movss xmm0, dword [ebp - 0x434]
movss dword [ecx + eax + 0x44c], xmm0
add ecx, 4
mov eax, dword [ebp - 0x430]
add eax, 0xc
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], eax
cmp eax, 0x12c
jl 0x60d880
push esi
push 1
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov edx, dword [ebp - 0x440]
add esp, 0x10
mov eax, dword [ebp - 0x428]
add edx, 0x514
mov dword [0x10208cc], eax
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], 0x19
nop dword [eax]
mov ecx, dword [edi + 0x3914]
push esi
push 1
push 4
mov dword [edx + ecx + 0x384], eax
lea eax, [ebp - 0x428]
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [ecx + edx], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x64], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0xc8], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
add esp, 0x40
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x12c], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x190], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x1f4], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x258], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov ecx, dword [edi + 0x3914]
add esp, 0x40
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push esi
push 1
mov dword [edx + ecx + 0x2bc], eax
lea eax, [ebp - 0x428]
push 4
push eax
call ebx
mov edx, dword [ebp - 0x42c]
add esp, 0x10
mov ecx, dword [edi + 0x3914]
mov eax, dword [ebp - 0x428]
mov dword [edx + ecx + 0x320], eax
add edx, 4
sub dword [ebp - 0x430], 1
mov dword [ebp - 0x42c], edx
je 0x60d7ff
mov eax, dword [0x10208cc]
jmp 0x60db00
test edx, edx
je 0x60dcc2
push 0x60c640
push dword [edx - 4]
lea esi, [edx - 4]
mov dword [ebp - 4], 2
push 0x904
push edx
call fcn.006dff8b
imul eax, dword [esi], 0x904
add eax, 4
push eax
push esi
call fcn.006e00a0
add esp, 8
push dword [edi + 0x392c]
mov dword [edi + 0x3914], 0
call fcn.006dfeff
add esp, 4
mov dword [edi + 0x392c], 0
jmp 0x60d830