Function at 0x409b40
Capabilities:
Copy file
Delete file
Resolve function by parsing pe exports
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x47f5b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x49f598]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x40]
xor ebx, ebx
cmp eax, 4
mov dword [esp + 0x24], ebx
ja case.default.0x409b79
jmp dword [eax*4 + 0x40a168]
mov ecx, dword [esp + 0x34]
lea esi, [ecx + 0x80]
mov ecx, esi
call fcn.004269b0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x20]
cmp edx, ebx
setne dl
cmp eax, ebx
push edx
mov edx, dword [ebp + 0x1c]
setne al
push eax
push ecx
push edx
mov ecx, esi
call fcn.004268b0
jmp case.default.0x409b79
mov esi, dword [sym.imp.WINMM.dll_PlaySoundA]
push ebx
push ebx
push ebx
call esi
cmp dword [esp + 0x2c], ebx
je 0x409bdb
xor eax, eax
or al, 6
push eax
mov eax, dword [ebp + 0x1c]
push ebx
push eax
call esi
jmp case.default.0x409b79
mov eax, dword [esp + 0x30]
neg eax
sbb eax, eax
and eax, 8
or al, 1
or al, 6
push eax
mov eax, dword [ebp + 0x1c]
push ebx
push eax
call esi
jmp case.default.0x409b79
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.004067e0
add esp, 0xc
test eax, eax
je case.default.0x409b79
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Media_play_AVI
call fcn.00471554
call fcn.00451710
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push str..avi
push ecx
push edx
call fcn.0047177b
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ecx
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
call edi
cmp dword [esp + 0x2c], ebx
je 0x409cf6
push 0x54
call fcn.004704db
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 2
je 0x409c8e
mov ecx, eax
call fcn.004254e0
jmp 0x409c90
xor eax, eax
mov esi, dword [esp + 0x34]
mov byte [esp + 0x24], 1
mov ecx, esi
mov edx, dword [esi]
mov dword [esi + 0x94], eax
mov eax, dword [esp + 0x3c]
push eax
call dword [edx + 0x74]
push eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x38]
push ecx
neg eax
mov ecx, dword [esi + 0x94]
push edx
sbb eax, eax
and eax, 2
dec eax
push eax
call fcn.00425890
mov ecx, dword [esi + 0x94]
call fcn.00425930
mov ecx, dword [esi + 0x94]
cmp ecx, ebx
je 0x409ceb
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x94], ebx
jmp 0x409df3
mov esi, dword [esp + 0x34]
cmp dword [esi + 0x98], ebx
je 0x409d4b
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CMedia:_Stop_previous_avi
call fcn.00471554
call fcn.00451710
mov ecx, dword [esi + 0x98]
add esp, 4
call fcn.00429580
mov ecx, dword [esi + 0x98]
call fcn.004295d0
mov ecx, dword [esi + 0x1c]
call fcn.00475059
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x40]
push eax
call edi
mov dword [esi + 0x98], ebx
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0047125b
push ecx
mov byte [esp + 0x2c], 3
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CMedia:_Play__s
call fcn.00471554
mov byte [esp + 0x2c], 1
call fcn.00451800
push 0x68
call fcn.004704db
add esp, 0xc
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x24], 4
je 0x409d9c
mov ecx, eax
call fcn.00428e70
jmp 0x409d9e
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0x24], 1
cmp ecx, ebx
mov dword [esi + 0x98], eax
jne 0x409db4
xor ecx, ecx
jmp 0x409db7
mov ecx, dword [ecx + 0x1c]
push ecx
mov ecx, eax
call fcn.00428f30
mov eax, dword [esp + 0x38]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
mov edi, dword [eax]
mov ebp, dword [eax + 4]
lea eax, [esp + 0x40]
push eax
call fcn.0047125b
mov ecx, dword [esi + 0x98]
call fcn.00429480
mov ecx, dword [esi + 0x98]
push ebp
push edi
push 0
call fcn.00429520
lea ecx, [esp + 0x3c]
mov byte [esp + 0x24], 0
call fcn.004714e6
jmp case.default.0x409b79
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Flash_play_starting_n
call fcn.00471554
call fcn.00451710
add esp, 4
call fcn.00418540
test eax, eax
je case.default.0x409b79
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.004067e0
add esp, 0xc
test eax, eax
je case.default.0x409b79
lea ecx, [esp + 0x10]
push str..swf
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0047177b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ecx
mov byte [esp + 0x30], 5
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
mov eax, dword [esi + 0x74]
push eax
call ebp
mov ecx, dword [esi + 0x74]
push ebx
push ecx
call ebp
test eax, eax
jne 0x409ec2
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Flash_event_n
call fcn.00471554
call fcn.00451710
mov ecx, dword [esi + 0x78]
add esp, 4
call fcn.00418290
mov dword [esi + 0x78], ebx
cmp dword [esi + 0x78], ebx
je 0x409eeb
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Flash_not_null_n
call fcn.00471554
call fcn.00451710
mov ecx, dword [esi + 0x78]
add esp, 4
call fcn.00418290
mov dword [esi + 0x78], ebx
push 0x118
call fcn.004704db
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
cmp edi, ebx
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x24], 6
je 0x409f42
call fcn.00470aef
test eax, eax
je 0x409f1f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x409f30
mov ecx, dword [esi + 0x74]
xor eax, eax
push ebx
push ecx
push eax
mov ecx, edi
call fcn.00418040
jmp 0x409f44
mov ecx, dword [esi + 0x74]
mov eax, dword [eax + 0x1c]
push ebx
push ecx
push eax
mov ecx, edi
call fcn.00418040
jmp 0x409f44
xor eax, eax
mov edx, dword [esp + 0x38]
mov dword [esi + 0x78], eax
add eax, 0x78
mov byte [esp + 0x24], 5
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x14]
mov dword [eax + 0x68], ecx
mov ecx, dword [esi + 0x78]
push edx
add ecx, 0x74
call fcn.0047161f
mov eax, dword [esi + 0x78]
mov edi, dword [esp + 0x2c]
xor ecx, ecx
cmp ebx, 0xffffffff
mov dword [eax + 0x6c], edi
mov edx, dword [esi + 0x78]
setne cl
mov dword [edx + 0x88], ecx
mov eax, dword [esi + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x78]
push 0
push 0
push 4
call fcn.00470c38
mov eax, dword [esi + 0x78]
push 0
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x78]
mov edx, dword [eax + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test edi, edi
je 0x40a020
mov eax, dword [esi + 0x74]
push 0
push eax
call ebp
cmp eax, 0x102
je 0x40a015
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x74]
push 0
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x409ffa
call edi
mov edx, dword [esi + 0x70]
push 0
push edx
call ebp
test eax, eax
je 0x40a015
mov eax, dword [esi + 0x74]
push 0
push eax
call ebp
cmp eax, 0x102
jne 0x409feb
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.004714e6
jmp case.default.0x409b79
mov esi, dword [esp + 0x34]
lea edi, [esi + 0x9c]
mov ecx, edi
call fcn.004297d0
mov eax, dword [esi + 0xb8]
lea ebx, [esi + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.004067e0
add esp, 0xc
test eax, eax
je case.default.0x409b79
lea edx, [esp + 0x10]
push str..mid
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0047177b
push eax
mov ecx, ebx
mov byte [esp + 0x28], 7
call fcn.0047161f
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.004714e6
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
call ebp
mov ecx, dword [esp + 0x30]
test ecx, ecx
setne al
mov byte [esi + 0xb4], al
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40a12c
mov ecx, dword [esi + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebx]
mov edx, dword [edi]
push 0
push eax
mov ecx, edi
call dword [edx]
push 1
mov ecx, edi
call fcn.004297a0
mov eax, dword [esi + 0x70]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
test eax, eax
je 0x40a125
mov ecx, dword [esi + 0xb0]
push 0
push ecx
call edi
test eax, eax
je 0x40a125
mov edx, dword [esi + 0x70]
push 0
push edx
call edi
test eax, eax
jne 0x40a10a
mov ebx, dword [ebx]
push ebx
call ebp
jmp case.default.0x409b79
mov ebx, dword [ebx]
mov eax, dword [edi]
push 0
push ebx
mov ecx, edi
call dword [eax]
push 1
mov ecx, edi
call fcn.004297a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004714e6
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0x14