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

Disassembly:
mov eax, 0x1058
call fcn.0046dc60
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0x1054], eax
mov eax, dword [esp + 0x105c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, 6
mov esi, 0x4947d0
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [ebx]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov word [esp + 0x61], ax
mov byte [esp + 0x63], al
test cl, cl
je 0x44288c
cmp cl, 0x2e
je 0x442887
mov cl, byte [ebx + eax + 1]
inc eax
test cl, cl
jne 0x442877
jmp 0x44288c
cmp eax, 0xffffffff
jne 0x4428b3
push ebx
lea ecx, [esp + 0x30]
push str._s.abm
push ecx
call fcn.0045f116
push ebx
lea edx, [esp + 0x2c]
push str._s.bmp
push edx
call fcn.0045f116
add esp, 0x18
xor edi, edi
jmp 0x4428e1
lea edx, [esp + 0x2c]
mov eax, ebx
sub edx, ebx
jmp 0x4428c0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4428c0
lea edx, [esp + 0x1c]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4428d2
mov edi, 1
lea eax, [esp + 0x2c]
push eax
push 0x4b3848
lea ecx, [esp + 0x86c]
push str._sGRP_s
push ecx
call fcn.0045f116
lea edx, [esp + 0x2c]
push edx
push 0x4b3848
lea eax, [esp + 0xc7c]
push str._sGRP_s
push eax
call fcn.0045f116
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x20
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
lea ecx, [esp + 0x87c]
push ecx
call esi
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
lea edx, [esp + 0xc7c]
push edx
mov ebp, eax
call esi
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
je 0x442a15
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4429c6
lea eax, [esp + 0x864]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442982
lea edi, [esp + 0x3c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x442990
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x494800
lea eax, [esp + 0x44]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4b3c9c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x442bae
mov eax, dword [0x4b3d20]
push 0
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test edi, edi
jne 0x4429fb
push str..abm
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x64]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x442a00
jmp 0x442b30
cmp eax, 0xffffffff
je 0x442aa5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x442a52
lea eax, [esp + 0xc64]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442a37
lea edi, [esp + 0x3c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x442a45
jmp 0x442998
mov eax, dword [0x4b3d20]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test edi, edi
jne 0x442a8b
push str..bmp
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x64]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x442a90
jmp 0x442b30
mov edi, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
mov esi, eax
cmp esi, 0xffffffff
je 0x442af2
mov ecx, dword [0x4b3d20]
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call eax
xor eax, eax
jmp 0x442ae0
mov cl, byte [esp + eax + 0x2c]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x442ae0
jmp 0x442b30
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call edx
mov esi, eax
cmp esi, 0xffffffff
je 0x442b5b
mov ecx, dword [0x4b3d20]
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call eax
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x1c]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x442b20
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov ebx, dword [0x4b3d20]
mov ecx, dword [0x4b5acc]
push esi
lea edx, [esp + 0x468]
call fcn.00405e30
jmp 0x442bae
mov eax, ebx
mov edx, ebx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442b60
lea edi, [esp + 0x3c]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x442b70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
push 0x494828
mov ecx, eax
mov eax, dword [0x4b3c9c]
lea edx, [esp + 0x44]
push edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
call esi
push 0xffffffffffffffff
call esi
mov ecx, dword [esp + 0x1064]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f0aa
add esp, 0x1058
ret