Function at 0x49d630
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 0x49d888
push esi
push eax
push 0x80
push 3
push eax
push 3
push bind
push str.snd_efchar_f.spac
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49d679
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_efchar_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 0x49d766
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 0x49d87e
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, 4
push edx
shl eax, 4
push ecx
add eax, edi
push eax
mov ecx, edi
call fcn.0049cbe0
test eax, eax
jne 0x49d734
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49d751
movzx ecx, word [esp + 0x10]
push 0x2c
add ecx, 4
push ebp
shl ecx, 4
add ecx, edi
push esi
push ecx
mov ecx, edi
call fcn.0049cca0
test eax, eax
je 0x49d79e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x49d6c0
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_efchar_m.spac
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49d7b7
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 edx, word [esp + 0x10]
add edx, 4
shl edx, 4
add edi, edx
jmp 0x49d8a0
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push esi
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x49d87e
lea esp, [esp]
push 0
lea eax, [esp + 0x20]
push eax
push 2
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
push 0
lea edx, [esp + 0x20]
push edx
push 0x2c
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
test eax, eax
je 0x49d87e
mov ecx, dword [esp + 0x48]
mov dx, 1
cmp dx, word [esp + 0x36]
movzx edx, word [esp + 0x42]
sbb eax, eax
neg eax
push eax
movzx eax, word [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
push ecx
mov ebp, ecx
movzx ecx, word [esp + 0x24]
shl ecx, 4
lea edx, [ecx + edi + 0x48]
push edx
mov ecx, edi
call fcn.0049cbe0
test eax, eax
jne 0x49d84d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49d869
movzx eax, word [esp + 0x10]
push 0x2c
push ebp
shl eax, 4
lea ecx, [eax + edi + 0x48]
push esi
push ecx
mov ecx, edi
call fcn.0049cca0
test eax, eax
je 0x49d88d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x49d7e0
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]
shl edx, 4
lea edi, [edx + edi + 0x48]
mov eax, dword [edi]
test eax, eax
je 0x49d885
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