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

Disassembly:
sub esp, 0x3c
push edi
mov edi, ecx
mov ecx, dword [0x653474]
call fcn.0041c970
test eax, eax
jne 0x49e65b
push esi
push eax
push 0x80
push 3
push eax
push 3
push bind
push str.snd_efmag_f.spac
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49e409
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
add esp, 0x3c
ret
push ebx
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x653470]
push eax
push str.snd_efmag_f.spac
call fcn.00462c20
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x49e4fa
push 0
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x2c
lea edx, [esp + 0x2c]
push edx
push esi
call ebx
test eax, eax
je 0x49e651
movzx edx, word [esp + 0x40]
mov ecx, dword [esp + 0x48]
xor eax, eax
mov ax, 1
cmp ax, word [esp + 0x36]
mov ebp, ecx
sbb eax, eax
neg eax
push eax
movzx eax, word [esp + 0x46]
push edx
mov edx, dword [esp + 0x40]
push eax
movzx eax, word [esp + 0x1c]
push edx
push ecx
shl eax, 4
lea ecx, [eax + edi + 0x23b8]
push ecx
mov ecx, edi
call fcn.0049cbe0
test eax, eax
jne 0x49e4c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49e4e5
movzx edx, word [esp + 0x10]
push 0x2c
push ebp
shl edx, 4
push esi
lea eax, [edx + edi + 0x23b8]
push eax
mov ecx, edi
call fcn.0049cca0
test eax, eax
je 0x49e532
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x49e450
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push 0
push 0x80
push 3
push 0
push 3
push bind
push str.snd_efmag_s.spac
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49e567
push eax
call ebp
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x3c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, word [esp + 0x10]
shl ecx, 4
mov eax, dword [ecx + edi + 0x23b8]
test eax, eax
lea edi, [ecx + edi + 0x23b8]
je 0x49e658
mov edi, eax
mov edx, dword [edi]
push edi
call dword [edx + 8]
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x3c
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x653470]
push eax
push str.snd_efmag_s.spac
call fcn.00462c20
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x49e651
push 0
lea edx, [esp + 0x20]
push edx
push 2
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x2c
lea edx, [esp + 0x2c]
push edx
push esi
call ebx
test eax, eax
je 0x49e651
movzx edx, word [esp + 0x40]
mov ecx, dword [esp + 0x48]
xor eax, eax
mov ax, 1
cmp ax, word [esp + 0x36]
mov ebp, ecx
sbb eax, eax
neg eax
push eax
movzx eax, word [esp + 0x46]
push edx
mov edx, dword [esp + 0x40]
push eax
movzx eax, word [esp + 0x1c]
add eax, 0x23c
push edx
shl eax, 4
push ecx
add eax, edi
push eax
mov ecx, edi
call fcn.0049cbe0
test eax, eax
jne 0x49e61c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49e63c
movzx ecx, word [esp + 0x10]
push 0x2c
add ecx, 0x23c
push ebp
shl ecx, 4
add ecx, edi
push esi
push ecx
mov ecx, edi
call fcn.0049cca0
test eax, eax
je 0x49e660
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x49e5a6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x3c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [esp + 0x10]
add edx, 0x23c
shl edx, 4
mov eax, dword [edi + edx]
add edi, edx
test eax, eax
je 0x49e658
mov edi, eax
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x3c
ret