Function at 0x42aea0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.00535ef0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x60000000
push 3
push 0
push 1
push closesocket
push str.d:data_streamswmawma.wad
call ebx
push 0
push 0x60000000
push 3
push 0
push 1
push closesocket
push str.d:data_streamswmamusic_wma.wad
mov dword [0x59f3d4], eax
call ebx
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
push str.d:data_streamswmawma.dat
mov dword [0x59f3d8], eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x42af99
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
push 4
push 0x6347b8
push esi
call ebp
mov edi, dword [0x6347b8]
mov eax, dword [0xb084b8]
lea edi, [edi + edi*2]
shl edi, 2
test eax, eax
jne 0x42af65
mov ecx, dword [str.Null_Pointer]
push ecx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x42af65
call fcn.0052ff20
mov ecx, dword [0xb084b8]
push 0
push 1
push edi
call fcn.00533b80
mov ecx, dword [0x6347b8]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [ecx + ecx*2]
mov dword [0x6347b4], eax
shl ecx, 2
push ecx
push eax
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x6347b8]
test esi, esi
jbe 0x42b04a
mov edx, dword [0x6347b4]
mov edi, 1
xor ecx, ecx
mov dword [esp + 0x14], edi
cmp edi, esi
mov dword [esp + 0x10], edi
jae 0x42b037
lea eax, [ecx + 0xc]
mov ebx, dword [ecx + edx]
mov ebp, dword [eax + edx]
cmp ebx, ebp
jbe 0x42b021
mov esi, dword [ecx + edx + 4]
mov edi, dword [ecx + edx + 8]
mov dword [ecx + edx], ebp
mov edx, dword [0x6347b4]
mov ebp, dword [eax + edx + 4]
mov dword [ecx + edx + 4], ebp
mov edx, dword [0x6347b4]
mov ebp, dword [eax + edx + 8]
mov dword [ecx + edx + 8], ebp
mov edx, dword [0x6347b4]
mov dword [eax + edx], ebx
mov edx, dword [0x6347b4]
mov dword [eax + edx + 4], esi
mov edx, dword [0x6347b4]
mov dword [eax + edx + 8], edi
mov esi, dword [0x6347b8]
mov edx, dword [0x6347b4]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
add eax, 0xc
inc ebx
cmp ebx, esi
mov dword [esp + 0x10], ebx
jb 0x42afc3
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
inc edi
add ecx, 0xc
mov dword [esp + 0x14], edi
lea eax, [edi - 1]
cmp eax, esi
jb 0x42afb8
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
push str.d:data_streamswmamusic_wma.dat
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x42b0f5
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push 4
push 0x6347c0
push esi
call ebx
mov edi, dword [0x6347c0]
mov eax, dword [0xb084b8]
lea edi, [edi + edi*2]
shl edi, 2
test eax, eax
jne 0x42b0c1
mov edx, dword [str.Null_Pointer]
push edx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x42b0c1
call fcn.0052ff20
mov ecx, dword [0xb084b8]
push 0
push 1
push edi
call fcn.00533b80
lea ecx, [esp + 0x14]
push 0
push ecx
mov ecx, dword [0x6347c0]
mov dword [0x6347bc], eax
lea edx, [ecx + ecx*2]
shl edx, 2
push edx
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret