Function at 0x4192e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x52382c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5eaab0]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
je 0x41930d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x5eaab0], ebx
mov eax, dword [0x1a2e664]
imul eax, eax, 0x54
lea eax, [eax + str.Map00]
push eax
push eax
lea eax, [ebp - 0x204]
push 0x4e4884
push eax
call fcn.004cce8a
lea ecx, [ebp - 0x204]
push 0x4e4714
push ecx
call fcn.004cdd4a
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x41936f
mov edx, dword [0x5ec1a0]
add edx, dword [0x1a3ba10]
push edx
call fcn.0040b000
add esp, 4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
push edi
push 1
push 4
push 0x5f0620
call fcn.004cdfab
push edi
push 1
push 4
push 0x53b9dc
call fcn.004cdfab
mov ecx, dword [0x53b9dc]
imul ecx, dword [0x5f0620]
add esp, 0x20
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x5eaab0], eax
cmp eax, ebx
jne 0x4193da
mov eax, dword [0x5ec1a4]
add eax, dword [0x1a3ba10]
push eax
call fcn.0040b000
push edi
call fcn.004cda49
add esp, 8
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
push esi
cmp dword [0x53b9dc], ebx
jbe 0x41941c
mov eax, dword [0x5f0620]
xor esi, esi
test eax, eax
je 0x419413
mov edi, edi
imul eax, ebx
add eax, dword [0x5eaab0]
push edi
push 1
add eax, esi
push 1
push eax
call fcn.004cdfab
mov eax, dword [0x5f0620]
inc esi
add esp, 0x10
cmp esi, eax
jb 0x4193f0
inc ebx
cmp ebx, dword [0x53b9dc]
jb 0x4193e8
push edi
call fcn.004cda49
mov esi, 0x46
add esp, 4
cmp dword [0x526908], esi
jne 0x419468
mov edx, dword [0x5ec1a8]
add edx, dword [0x1a3ba10]
push edx
push 0x1a3c018
call fcn.004cce8a
fld dword [0x4e4880]
fst dword [0x5e90d4]
add esp, 4
fst dword [0x64403c]
fstp dword [esp]
call fcn.0046c530
jmp 0x419483
fld dword [0x4e4880]
push ecx
fst dword [0x5e90d4]
fst dword [0x64403c]
fstp dword [esp]
call fcn.0046c7d0
mov eax, dword [0x1a2e664]
imul eax, eax, 0x54
add esp, 4
add eax, str.Map00
push eax
lea ecx, [ebp - 0x204]
push 0x4e4874
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x204]
push edx
call fcn.004318d0
mov ecx, dword [0x5f483c]
add esp, 0x10
push 2
push 0x15
lea eax, [ebp - 0x204]
push eax
call fcn.004a4cf0
mov dword [0x41ec368], eax
mov eax, dword [0x6a42ac]
cmp eax, 1
jne 0x4194dd
push 0x7f
jmp 0x4194ee
cmp eax, 2
jne 0x4194e9
push 0xbf
jmp 0x4194ee
push 0xff
mov ecx, dword [0x641938]
call fcn.00488380
cmp dword [0x526908], esi
jne 0x419537
mov edx, dword [0x5ec1ac]
add edx, dword [0x1a3ba10]
push edx
push 0x1a3c018
call fcn.004cce8a
fld dword [0x4e4870]
fst dword [0x5e90d4]
add esp, 4
fst dword [0x64403c]
fstp dword [esp]
call fcn.0046c530
jmp 0x419552
fld dword [0x4e4870]
push ecx
fst dword [0x5e90d4]
fst dword [0x64403c]
fstp dword [esp]
call fcn.0046c7d0
mov eax, dword [0x1a2e664]
imul eax, eax, 0x54
add esp, 4
lea eax, [eax + str.Map00]
push eax
push eax
lea eax, [ebp - 0x204]
push str.Map_s.me2
push eax
call fcn.004cce8a
mov ecx, dword [0x1a2e664]
imul ecx, ecx, 0x54
add ecx, str.Map00
push ecx
lea edx, [ebp - 0x404]
push str.MapTextures
push edx
call fcn.004cce8a
mov eax, dword [0x1a2e664]
imul eax, eax, 0x54
push 0x526a00
add eax, str.Map00
push eax
lea ecx, [ebp - 0x304]
push str._sShadow._s
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x504]
push 0x4e4844
push edx
call fcn.004cce8a
mov eax, dword [0x64123c]
mov ecx, dword [0x6423c4]
add esp, 0x34
push 1
push eax
push ecx
lea edx, [ebp - 0x504]
push edx
lea eax, [ebp - 0x304]
push eax
push 0x526a00
lea ecx, [ebp - 0x404]
push ecx
mov ecx, dword [0x53b1ec]
lea edx, [ebp - 0x204]
push edx
call fcn.00499450
test eax, eax
jne 0x419636
mov ecx, dword [0x5ec1b0]
add ecx, dword [0x1a3ba10]
push ecx
call fcn.0040b000
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
cmp dword [0x526908], esi
jne 0x419673
mov eax, dword [0x5ec1b4]
add eax, dword [0x1a3ba10]
push eax
push 0x1a3c018
call fcn.004cce8a
fld dword [0x4e4840]
fst dword [0x5e90d4]
add esp, 4
fst dword [0x64403c]
fstp dword [esp]
call fcn.0046c530
jmp 0x41968e
fld dword [0x4e4840]
push ecx
fst dword [0x5e90d4]
fst dword [0x64403c]
fstp dword [esp]
call fcn.0046c7d0
add esp, 4
cmp dword [0x526908], esi
jne 0x4196cf
mov edx, dword [0x5ec1b8]
add edx, dword [0x1a3ba10]
push edx
push 0x1a3c018
call fcn.004cce8a
fld dword [0x4e44a8]
fst dword [0x5e90d4]
add esp, 4
fst dword [0x64403c]
fstp dword [esp]
call fcn.0046c530
jmp 0x4196ea
fld dword [0x4e44a8]
push ecx
fst dword [0x5e90d4]
fst dword [0x64403c]
fstp dword [esp]
call fcn.0046c7d0
add esp, 4
mov dword [0x5ea9a8], 1
call fcn.00416a30
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004ccd49
mov esp, ebp
pop ebp
ret