Function at 0x44d480
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e20b
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x44d679
call fcn.0044bd20
mov eax, dword [esp + 0x3c]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44d4de
mov ecx, esi
call fcn.0044bd20
xor eax, eax
jmp 0x44d77b
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x13
push edx
push ebp
call ebx
test eax, eax
je 0x44d66b
cmp dword [esp + 0x10], 0x13
jne 0x44d66b
mov eax, 0x475cec
lea edi, [esp + 0x18]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x44d535
test cl, cl
je 0x44d531
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x44d535
add edi, 2
add eax, 2
test cl, cl
jne 0x44d511
xor eax, eax
jmp 0x44d53a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x44d66b
push eax
lea eax, [esp + 0x14]
lea edi, [esi + 0x64]
push eax
push 4
push edi
push ebp
call ebx
mov edi, dword [edi]
test edi, edi
jle 0x44d638
lea eax, [edi*8]
sub eax, edi
lea ecx, [eax + eax*2]
lea edx, [ecx*8 + 4]
push edx
call fcn.00461b30
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x34], 0
je 0x44d5ac
push fcn.00453500
mov dword [eax], edi
push fcn.004534e0
add eax, 4
push edi
push 0xa8
push eax
mov dword [esp + 0x50], eax
call fcn.004617d7
mov eax, dword [esp + 0x3c]
jmp 0x44d5ae
xor eax, eax
xor edi, edi
mov dword [esp + 0x34], 0xffffffff
cmp eax, edi
mov dword [esi + 0x68], eax
je 0x44d66b
mov eax, dword [esi + 0x64]
mov dword [esp + 0x3c], edi
cmp eax, edi
jle 0x44d604
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
mov edx, dword [esi + 0x68]
mov ecx, edi
push ebp
add ecx, edx
call fcn.00453630
test eax, eax
je 0x44d66b
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x64]
inc eax
add edi, 0xa8
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x44d5ce
mov eax, dword [esi + 0x64]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
push eax
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0x6c], eax
je 0x44d66b
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, dword [esi + 0x64]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
shl edx, 2
push edx
push eax
push ebp
call ebx
lea eax, [esp + 0x10]
push 0
lea edi, [esi + 0x70]
push eax
push 4
push edi
push ebp
call ebx
mov eax, dword [edi]
test eax, eax
jle 0x44d6ef
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
shl edx, 2
push edx
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0x74], eax
jne 0x44d680
mov ecx, esi
call fcn.0044bd20
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x44d77b
mov eax, dword [edi]
mov dword [esp + 0x3c], 0
test eax, eax
jle 0x44d6ef
xor edi, edi
mov edx, dword [esi + 0x74]
lea eax, [esp + 0x10]
mov ecx, edi
push 0
push eax
add ecx, edx
push 4
push ecx
push ebp
call ebx
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [edi + eax + 4]
push 0xc
push ecx
push ebp
call ebx
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [edi + eax + 0x10]
push 0xc
push ecx
push ebp
call ebx
mov edx, dword [esi + 0x74]
xor eax, eax
mov dword [edi + edx + 0x1c], eax
mov ecx, dword [esi + 0x74]
mov dword [edi + ecx + 0x48], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x70]
inc eax
add edi, 0x4c
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x44d690
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jge 0x44d76f
lea edi, [eax*8]
sub edi, eax
shl edi, 4
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [eax + edi + 0x60]
push 4
push ecx
push ebp
call ebx
mov edx, dword [esi + 0x28]
mov eax, dword [edx + edi + 0x60]
test eax, eax
jle 0x44d75c
shl eax, 2
push eax
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ecx, dword [esi + 0x28]
mov dword [ecx + edi + 0x64], eax
mov edx, dword [esi + 0x28]
mov ecx, dword [edx + edi + 0x64]
lea eax, [edx + edi]
test ecx, ecx
je 0x44d790
mov eax, dword [eax + 0x60]
lea edx, [esp + 0x10]
push 0
push edx
shl eax, 2
push eax
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x1c]
inc eax
add edi, 0x70
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x44d70a
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10
mov ecx, esi
call fcn.0044bc70
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x44d77b