Function at 0x42a560
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xac
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb0]
push ebx
push ebp
mov ebp, dword [esp + 0xbc]
push esi
push edi
push 0x100
mov esi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
push 0
cmp ebp, 0x64
je 0x42a5f8
mov edx, ebp
shl edx, 8
lea edi, [edx + esi]
lea ebx, [edi + 0x46c]
push ebx
call fcn.00463f50
add esp, 0xc
push 0x100
mov dword [esp + 0x28], ebx
lea ebx, [edi + 0xe6c]
push 0
push ebx
call fcn.00463f50
add esp, 0xc
push 0x100
add edi, 0x186c
push 0
push edi
call fcn.00463f50
lea eax, [esi + ebp*4 + 0x226c]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x42a643
lea edi, [esi + 0x2294]
push edi
call fcn.00463f50
add esp, 0xc
push 0x100
lea ebp, [esi + 0x2394]
push 0
push ebp
call fcn.00463f50
add esp, 0xc
push 0x100
mov ebx, ebp
lea ebp, [esi + 0x2494]
push 0
push ebp
call fcn.00463f50
add esp, 0xc
add esi, 0x2594
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42a7b3
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edx, [esp + 0x24]
push edx
push esi
call ebp
push eax
call fcn.0045fd36
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push eax
push esi
call ebp
mov ebp, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a6da
cmp dword [esp + 0x18], 0
je 0x42a6da
lea eax, [ebp + 0x10]
lea edx, [esp + 0x70]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42a6b6
lea eax, [ebp + 0x50]
lea edx, [esp + 0x50]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42a6d0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [esp + 0x28]
test edx, edx
je 0x42a718
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [esp + 0x32]
movzx edx, word [esp + 0x30]
movzx eax, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x2e]
push edx
movzx edx, word [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
push str._s__04d__02d__02d__02d:_02d
push edi
call fcn.0045f116
lea eax, [esp + 0x90]
mov edx, ebx
mov ecx, eax
add esp, 0x20
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42a756
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x50]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42a770
push ebp
call fcn.0045fc59
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edx], 1
test esi, esi
je 0x42a798
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f0aa
add esp, 0xac
ret 8
mov eax, dword [esp + 0x20]
push str._____________:__
push eax
push str._s__s
push edi
call fcn.0045f116
mov ecx, dword [esp + 0x24]
push 0x100
push 0
push ecx
mov byte [ebx], 0
call fcn.00463f50
mov edx, dword [esp + 0x2c]
add esp, 0x1c
mov dword [edx], 0
jmp 0x42a798