Function at 0x417fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4600b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x6c], ebx
push 0
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x417fe7
push 0x30
push 0x456ed8
push 0x456ee0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4184ba
lea eax, [ebp - 0x44]
push eax
push 0x4570a4
push 1
push 0
push 0x4570b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4184a1
mov eax, dword [ebp - 0x44]
push 0xffffffffffffffff
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x418021
mov ecx, dword [ebp - 0x44]
mov dword [edi], ecx
jmp 0x41802a
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x4184a1
mov ecx, dword [edi]
lea eax, [edi + 4]
push 0
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push eax
push ecx
call dword [edx + 0x28]
test eax, eax
jns 0x41807a
push 0x30
push 0x456ed8
push 0x456f24
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [edi]
test ecx, ecx
je 0x4184b4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], 0
jmp 0x4184b4
mov ebx, edi
mov ecx, 0x4562cc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], ecx
lea eax, [ebx + 0x50]
mov dword [ebp - 0x70], eax
mov eax, 0xffffffb0
sub eax, ebx
mov dword [ebp - 0x80], eax
nop word [eax + eax]
push 0
push 0
push 3
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
push closesocket
push dword [ecx - 4]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41846b
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41845d
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x46464952
push esi
call fcn.004185f0
test eax, eax
js 0x418430
push 0
push 0
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41814b
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418161
call edi
test eax, eax
jle 0x41815b
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4182f5
cmp dword [ebp - 0xc], 0x45564157
jne 0x418403
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x20746d66
push esi
call fcn.004185f0
test eax, eax
js 0x4183d6
push 0
push 0
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4181b4
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4181ca
call edi
test eax, eax
jle 0x4181c4
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x418322
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x44]
add eax, 0x50
add eax, dword [ebp - 0x80]
push ecx
add eax, ebx
push eax
push 0x61746164
push esi
call fcn.004185f0
test eax, eax
js 0x4183a9
mov eax, dword [ebp - 0x70]
push dword [eax]
call fcn.00425d38
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x70]
push 0
push 0
push dword [ebp - 0x44]
mov dword [eax - 0x24], ebx
mov eax, dword [eax]
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41822f
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x74]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418245
call edi
test eax, eax
jle 0x41823f
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x41834f
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x40]
push 0
push 0
push 0
mov ecx, dword [ebx]
push ecx
mov dword [esp], 0x40000000
push 0
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x70]
add ecx, 8
add eax, ecx
mov ecx, dword [ebx]
add eax, ebx
push eax
push ecx
call dword [edx + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
js 0x41837c
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x68], xmm0
push 0
mov eax, dword [ecx]
mov dword [ebp - 0x64], eax
mov eax, dword [ecx - 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x78]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x68], 0x40
push edx
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx - 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x78]
add dword [ebp - 0x70], 4
add ecx, 8
mov dword [ebp - 0x78], ecx
cmp ecx, 0x456314
jl 0x4180a0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push 0x456fb8
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push 0x457020
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push 0x457064
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push 0x457088
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push 0x457040
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push 0x457000
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push str.WAVE
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push 0x456f94
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push 0x456f6c
jmp 0x418477
push 0x30
push 0x456ed8
push 0x456f44
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_MessageBoxA]
call edi
test eax, eax
jle 0x4184bf
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4
push 0x30
push 0x456ed8
push str.XAudio2
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0x80004005
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4