Function at 0x47ddb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x50beb0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x508fe8
mov eax, dword [str.dynobj.dat]
push eax
call fcn.004943f0
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47de01
push str.The_file_eventConfigtTable.dat_was_not_opened__n
call fcn.0048c1d0
add esp, 4
or eax, 0xffffffff
jmp 0x47e09c
push 2
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00494fe0
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
call fcn.00494c20
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x10
jge 0x47de47
mov eax, dword [ebp - 0x14]
push eax
call fcn.00493af0
add esp, 4
push str.The_file_dynobj.dat_is_empty_n
call fcn.0048c1d0
add esp, 4
or eax, 0xffffffff
jmp 0x47e09c
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00494fe0
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x5c]
push edx
call fcn.00493230
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
push 1
push 0x10
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00494bc0
add esp, 0x10
mov dword [ebp - 8], 1
jmp 0x47de8d
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xd
jg 0x47e08e
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0x5d]
test ecx, ecx
je 0x47e089
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
cmp dword [edx + 0x51162c], 0
jne 0x47df6c
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
cmp dword [eax + 0x511630], 0
je 0x47dee0
push 0x358
push 0x509040
push str.DYNOBJ_ENTRY_i_.nodes__NULL
call fcn.00492630
add esp, 0xc
push 8
push 0xff
call fcn.00496490
add esp, 8
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov dword [edx + 0x51162c], eax
push 4
push 0xff
call fcn.00496490
add esp, 8
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov dword [ecx + 0x511630], eax
push 0x7f8
push 0
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov eax, dword [edx + 0x51162c]
push eax
call fcn.00493230
add esp, 0xc
push 0x3fc
push 0
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x511630]
push edx
call fcn.00493230
add esp, 0xc
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov byte [eax + 0x511629], 0
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov dl, byte [ebp - 8]
mov byte [ecx + 0x511628], dl
jmp 0x47df73
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
movzx ecx, byte [eax + 0x511629]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x47df9c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0x5d]
cmp dword [ebp - 0xc], ecx
jge 0x47e07a
mov edx, dword [ebp - 0x14]
push edx
push 1
push 0x28
lea eax, [ebp - 0x44]
push eax
call fcn.00494bc0
add esp, 0x10
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x51162c]
mov eax, dword [ebp - 0xc]
cmp dword [edx + eax*8], 0
je 0x47dff1
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x51162c]
mov eax, dword [ebp - 0xc]
lea ecx, [edx + eax*8]
push ecx
call fcn.0044b290
add esp, 4
movzx edx, byte [ebp - 0x44]
test edx, edx
jle 0x47e075
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x51162c]
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x44]
mov byte [ecx + edx*8 + 4], al
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x51162c]
mov eax, dword [ebp - 0xc]
mov dword [edx + eax*8], 0
movzx ecx, byte [ebp - 0x44]
shl ecx, 1
push ecx
call fcn.00493ac0
add esp, 4
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov ecx, dword [edx + 0x51162c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + edx*8], eax
movzx eax, byte [ebp - 0x44]
shl eax, 1
push eax
lea ecx, [ebp - 0x43]
push ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov eax, dword [edx + 0x51162c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + ecx*8]
push edx
call fcn.004952a0
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x47df93
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov dl, byte [ebp - 0x10]
mov byte [ecx + 0x511629], dl
jmp 0x47de84
mov eax, dword [ebp - 0x14]
push eax
call fcn.00493af0
add esp, 4
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x47e0c8]
call fcn.00492460
pop eax
pop edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004932b0
add esp, 0x60
cmp ebp, esp
call fcn.00492430
mov esp, ebp
pop ebp
ret