Function at 0x410d70
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x481df9
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4a8f7c]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a8f7c]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov esi, dword [esp + 0x194]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
call fcn.00413b20
mov edi, dword [esp + 0x198]
push 0x100
lea eax, [esp + 0x80]
push 0
push eax
mov dword [esp + 0x198], 0
mov dword [esp + 0x188], edi
call fcn.00451810
push esi
lea ecx, [esp + 0x8c]
push 0x100
push ecx
call fcn.00451e50
add esp, 0x18
push 0
push 0x20
push 3
push 0
push 0
push DirectSoundCreate
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x410e4d
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x10
lea ecx, [esp + 0x54]
push ecx
push esi
call ebp
cmp dword [esp + 0x4c], 0
je 0x410e64
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], ebx
call fcn.00413ce0
xor eax, eax
jmp 0x41116e
cmp dword [esp + 0x50], edi
jbe 0x410e46
push 1
push 0
lea edx, [edi*4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push esi
call ebp
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x410e46
mov edx, dword [esp + 0x50]
push 0
push 0
lea eax, [eax + edx*4 + 0x10]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x24
lea edx, [esp + 0x64]
push edx
push esi
call ebp
mov eax, dword [esp + 0x48]
sub eax, 1
je 0x41103b
sub eax, 1
jne 0x411159
push eax
lea eax, [esp + 0x1c]
push eax
push 0x14
lea ecx, [esp + 0x34]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x2c]
push edx
call fcn.00451980
mov edi, eax
add esp, 4
test edi, edi
je 0x410e46
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x34]
imul esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
push edx
lea eax, [esi*4]
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00413b30
push edi
call fcn.00451890
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00413cd0
lea ecx, [esi + esi*2]
mov ebp, eax
push ecx
mov dword [esp + 0x20], ebp
xor edi, edi
call fcn.00451980
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410fb0
test esi, esi
jbe 0x410f92
lea eax, [ebp + 1]
lea ecx, [ebx + 1]
mov ebp, esi
jmp 0x410f70
movzx edx, byte [eax + 1]
mov byte [ecx + 1], dl
movzx edx, byte [eax]
mov byte [ecx], dl
movzx edx, byte [eax - 1]
mov byte [ecx - 1], dl
add eax, 4
add ecx, 3
sub ebp, 1
jne 0x410f70
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x38], edi
je 0x410fd4
push esi
call fcn.00451980
mov edi, eax
add esp, 4
test edi, edi
jne 0x410fbe
push ebx
call fcn.00451890
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00413cb0
jmp 0x41108c
xor eax, eax
test esi, esi
jbe 0x410fd4
lea ecx, [ebp + 3]
mov dl, byte [ecx]
mov byte [eax + edi], dl
inc eax
add ecx, 4
cmp eax, esi
jb 0x410fc7
lea ecx, [esp + 0x14]
call fcn.00413cb0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1a0]
push edi
push ebx
push eax
mov eax, dword [esp + 0x1a8]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00410c10
push ebx
test eax, eax
jne 0x411026
call fcn.00451890
add esp, 4
test edi, edi
je 0x41108c
push edi
call fcn.00451890
add esp, 4
jmp 0x41108c
call fcn.00451890
add esp, 4
test edi, edi
je 0x411156
jmp 0x41114d
push 0xc
call fcn.00451980
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x18c], 1
test eax, eax
je 0x411060
mov ecx, eax
call fcn.00411e00
mov edi, eax
jmp 0x411062
xor edi, edi
mov byte [esp + 0x18c], 0
test edi, edi
je 0x410e46
mov edx, dword [esp + 0x78]
push edx
call fcn.00451980
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4110a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], 0xffffffff
call fcn.00413ce0
xor eax, eax
jmp 0x41116e
mov ecx, dword [esp + 0x78]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x3c]
push edx
push eax
push ebx
mov ecx, edi
call fcn.00411e40
test eax, eax
jne 0x4110ef
push ebx
call fcn.00451890
add esp, 4
mov ecx, edi
call fcn.00412020
push edi
call fcn.00451890
add esp, 4
jmp 0x41108c
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push 0
push ecx
mov ecx, dword [esp + 0x1a8]
push edx
mov edx, dword [esp + 0x1a8]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.00410c10
push ebx
test eax, eax
jne 0x411137
call fcn.00451890
add esp, 4
mov ecx, edi
call fcn.00411e10
jmp 0x4110dd
call fcn.00451890
add esp, 4
mov ecx, edi
call fcn.00411e10
mov ecx, edi
call fcn.00412020
push edi
call fcn.00451890
add esp, 4
or ebx, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], ebx
call fcn.00413ce0
mov eax, 1
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.00451800
add esp, 0x17c
ret 0x10