Function at 0x406b30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ed49
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x4739a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x3c], esi
xor edi, edi
push 0x32
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0042ce08
mov edx, dword [esi + 0x20]
push 1
lea ecx, [ebp - 0x68]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x461be4
call fcn.00401770
mov ecx, esi
call fcn.004059a0
mov dword [ebp - 0x38], edi
cmp edi, dword [esi + 0x8c]
jge 0x4072af
call fcn.0042c542
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406bc8
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test edi, edi
jl 0x4072aa
cmp edi, dword [esi + 0x8c]
jge 0x4072aa
mov ecx, dword [esi + 0x88]
mov ebx, dword [ecx + edi*4]
mov esi, dword [ebx + 4]
lea eax, [ecx + edi*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x406c28
cmp eax, dword [esi]
jne 0x406c28
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x406c5d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x406c41
call fcn.004011b0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00448b29
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x18], edi
mov esi, dword [ebx]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
mov byte [ebp - 4], 1
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x406c90
cmp eax, dword [esi]
jne 0x406c90
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x406cc5
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x406ca9
call fcn.004011b0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00448b29
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x28], edi
push 0x46177f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401770
push str.NanoPlayerRun.exe
push edi
mov byte [ebp - 4], 3
call fcn.00449dbe
add esp, 8
test eax, eax
sete al
test al, al
je 0x406d22
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x407107
call fcn.00435941
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00402f70
mov edx, dword [ebx]
mov eax, dword [eax]
push edx
push eax
lea ecx, [ebp - 0x14]
push str._s_temp_s
push ecx
mov byte [ebp - 4], 4
call fcn.00401710
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x406d87
push 0x80070057
call fcn.00401020
cmp byte [esi], 0x2e
jne 0x406da6
dec eax
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004029b0
or dword [ebp - 0x20], 1
mov edi, dword [eax]
mov byte [ebp - 4], 5
jmp 0x406da8
mov edi, esi
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x406db9
push 0x80070057
call fcn.00401020
cmp byte [esi], 0x2e
je 0x406dd8
cmp eax, 1
jge 0x406dcd
push 0x80070057
call fcn.00401020
cmp byte [esi + 1], 0x2f
mov esi, 0x461bac
jne 0x406ddd
mov esi, 0x46177f
call fcn.00435941
mov eax, dword [eax + 4]
lea edx, [ebp - 0x44]
push edx
mov ecx, eax
call fcn.00402f70
mov eax, dword [eax]
push edi
push esi
push eax
lea ecx, [ebp - 0x1c]
push str._s_s_s
push ecx
mov dword [ebp - 4], 6
call fcn.00401710
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [ebp - 0x20], 1
mov dword [ebp - 4], 3
je 0x406e60
mov eax, dword [ebp - 0x48]
and dword [ebp - 0x20], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.00401380
mov edi, dword [ebp - 0x3c]
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.004059a0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4071a9
mov esi, dword [ebp - 0x1c]
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x34], eax
call fcn.00401380
add eax, 0x10
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
call fcn.00435941
mov eax, dword [eax + 4]
push 1
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00402d30
test eax, eax
je 0x407177
mov edx, dword [ebp - 0x14]
push 0
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40701c
call fcn.0042c542
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406f03
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
push esi
push ecx
lea edx, [ebp - 0x38]
push str.copy_error1:_s__s
push edx
call fcn.00401710
mov esi, dword [ebp - 0x38]
add esp, 0x10
push 0
push 0
push esi
call fcn.00433f2f
or edx, 0xffffffff
lea eax, [esi - 0x10]
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406fc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406fe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc], 0
je 0x407096
push 0x46177f
lea ecx, [ebp - 0x2c]
call fcn.00401770
mov ecx, dword [ebx]
push ecx
lea edx, [ebp - 0x2c]
push 0x461b74
push edx
mov byte [ebp - 4], 9
call fcn.00401710
mov eax, dword [ebp - 0x2c]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x4c], esp
mov esi, esp
push eax
call fcn.00401380
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.00405ca0
or edx, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
jne 0x40707d
add eax, 0xfffffff0
jmp 0x406f43
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x58]
call fcn.0042c452
mov ecx, dword [ebp - 0x14]
push ecx
mov byte [ebp - 4], 0xd
call fcn.004394cb
mov dword [ebp - 4], 0xc
mov byte [ebp - 4], 3
call fcn.0042c46a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407124
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407169
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
jmp 0x406ba2
call fcn.0042c542
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407191
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xa
jmp 0x406f16
cmp dword [ebx + 0xc], 0
je 0x4070b9
push 0x46177f
lea ecx, [ebp - 0x30]
call fcn.00401770
mov ecx, dword [ebx]
push ecx
lea edx, [ebp - 0x30]
push 0x461b74
push edx
mov byte [ebp - 4], 0xb
call fcn.00401710
mov eax, dword [ebp - 0x30]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x4c], esp
mov esi, esp
push eax
call fcn.00401380
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.00405ca0
test eax, eax
mov eax, dword [ebp - 0x30]
jne 0x407099
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40728c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
jmp 0x406fe8
call fcn.0042c365
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret