Function at 0x410400
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x449fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46488c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0
call fcn.004208e3
mov edi, dword [esp + 0x3c]
push 0
push 0x8000
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 1
call fcn.00420d14
lea ecx, [esp + 0x1c]
call fcn.004207d6
push 0
push 0
push 0
push 2
mov esi, eax
mov eax, dword [esp + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
push 0
push 0
push 4
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test esi, esi
mov ebx, eax
mov dword [esp + 0x14], ebx
jg 0x4104d8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.004209df
lea eax, [edi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, 4
mov edx, str.RIFF
mov esi, ebx
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x4104fc
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x4104e4
test ecx, ecx
je 0x410559
movzx edi, byte [esi]
movzx eax, byte [edx]
sub edi, eax
jne 0x41054b
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x410559
movzx edi, byte [esi]
movzx eax, byte [edx]
sub edi, eax
jne 0x41054b
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x410559
movzx edi, byte [esi]
movzx eax, byte [edx]
sub edi, eax
jne 0x41054b
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x410559
movzx edi, byte [esi]
movzx ecx, byte [edx]
sub edi, ecx
je 0x410559
test edi, edi
mov ecx, 1
jg 0x41055b
or ecx, 0xffffffff
jmp 0x41055b
xor ecx, ecx
test ecx, ecx
jne 0x4105eb
lea esi, [ebx + 8]
mov ecx, 4
mov edx, str.WAVE
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x410588
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x410570
test ecx, ecx
je 0x4105e5
movzx edi, byte [esi]
movzx eax, byte [edx]
sub edi, eax
jne 0x4105d7
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x4105e5
movzx edi, byte [esi]
movzx eax, byte [edx]
sub edi, eax
jne 0x4105d7
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x4105e5
movzx edi, byte [esi]
movzx eax, byte [edx]
sub edi, eax
jne 0x4105d7
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x4105e5
movzx edi, byte [esi]
movzx ecx, byte [edx]
sub edi, ecx
je 0x4105e5
test edi, edi
mov ecx, 1
jg 0x4105e7
or ecx, 0xffffffff
jmp 0x4105e7
xor ecx, ecx
test ecx, ecx
je 0x4105f4
push 0
push 5
call fcn.00421dec
lea eax, [ebx + 0xc]
mov ebp, 0x14
lea esp, [esp]
mov ecx, 4
mov edx, str.fmt
mov esi, eax
lea esp, [esp]
mov edi, dword [esi]
cmp edi, dword [edx]
jne 0x410628
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x410610
test ecx, ecx
je 0x41068d
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x410677
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x410689
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x410677
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x410689
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x410677
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x410689
movzx edi, byte [esi]
movzx edx, byte [edx]
sub edi, edx
je 0x410689
test edi, edi
mov ebx, dword [esp + 0x14]
mov ecx, 1
jg 0x41068f
or ecx, 0xffffffff
jmp 0x41068f
mov ebx, dword [esp + 0x14]
xor ecx, ecx
test ecx, ecx
je 0x4106a1
add ebp, dword [eax + 4]
lea eax, [ebx + ebp]
add ebp, 8
jmp 0x410600
mov esi, dword [ebx + ebp + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
call fcn.00420881
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.004209df
lea ecx, [esp + 0x3c]
call fcn.00401a60
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret