Function at 0x1012388
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x638], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x628], esi
mov dword [ebp - 0x620], esi
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x10123f5
test byte [eax + 0x1c], 4
je 0x10123f5
cmp byte [eax + 0x19], 5
jb 0x10123f5
push 0x1001a94
push 0x7d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
cmp dword [ebp + 0x1c], esi
jne 0x1012402
push 0x57
pop eax
jmp 0x1012a8b
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push edi
call fcn.0105e220
mov dword [ebp - 0x62c], eax
cmp eax, 0xffffffff
jne 0x1012457
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012450
test byte [eax + 0x1c], 4
je 0x1012450
cmp byte [eax + 0x19], 2
jb 0x1012450
push esi
push edi
push 0x1001a94
push 0x7e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
mov eax, esi
jmp 0x1012a8b
mov ecx, dword [0x1077e1c]
xor esi, esi
push esi
push esi
push 0x104
lea eax, [ebp - 0x61c]
push eax
push esi
push esi
call fcn.0100fa7b
mov edi, eax
cmp edi, esi
je 0x10124a8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012917
test byte [eax + 0x1c], 4
je 0x1012917
cmp byte [eax + 0x19], 2
jb 0x1012917
push edi
push 0x1001a94
push 0x7f
jmp 0x10128b9
lea eax, [ebp - 0x624]
push eax
mov eax, dword [ebp + 0x1c]
push 8
pop edi
mov ecx, edi
mul ecx
push edx
push eax
call fcn.010657d7
mov esi, eax
test esi, esi
jge 0x101250e
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10124f1
test byte [eax + 0x1c], 4
je 0x10124f1
cmp byte [eax + 0x19], 2
jb 0x10124f1
push esi
push 0x1001a94
push 0x80
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1012507
movzx edi, si
jmp 0x1012917
mov edi, esi
jmp 0x1012917
push dword [ebp - 0x624]
call fcn.0105c184
xor esi, esi
mov dword [ebp - 0x628], eax
cmp eax, esi
jne 0x1012566
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x101291f
test byte [eax + 0x1c], 4
je 0x101291f
cmp byte [eax + 0x19], 2
jb 0x101291f
push dword [ebp - 0x624]
push 0x1001a94
push 0x81
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x101291f
push dword [ebp - 0x624]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x638]
add esp, 0xc
push dword [eax]
call fcn.0105c8ee
mov dword [ebp - 0x624], eax
cmp eax, esi
jne 0x10125d0
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x101291f
test byte [eax + 0x1c], 4
je 0x101291f
cmp byte [eax + 0x19], 2
jb 0x101291f
mov ecx, dword [ebp - 0x638]
push dword [ecx]
push 0x1001a94
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100915e
jmp 0x101291f
mov dword [ebp - 0x620], esi
cmp dword [ebp + 0x1c], esi
jbe 0x10126fc
push 0x3b
push dword [ebp - 0x624]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov dword [ebp - 0x63c], eax
test eax, eax
je 0x10125fe
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 0x620]
lea esi, [eax + ecx*8]
call fcn.01048b61
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, edx
mov ecx, eax
or ecx, esi
je 0x10127a7
push 0x104
lea ecx, [ebp - 0x414]
push ecx
mov ecx, dword [ebp - 0x620]
push esi
push eax
mov eax, dword [ebp - 0x634]
push dword [eax + ecx*4]
mov ecx, dword [0x1077e1c]
call fcn.0100ebd8
mov edi, eax
test edi, edi
jne 0x10127e0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x10019a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009a76
add esp, 0x14
test eax, eax
jl 0x1012811
push 1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1012863
push dword [ebp - 0x624]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x638]
push eax
call fcn.0100bef0
mov edi, eax
test edi, edi
jne 0x1012899
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x10126d8
add eax, 2
mov dword [ebp - 0x624], eax
jmp 0x10126df
and dword [ebp - 0x624], 0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x620]
mov eax, dword [ebp - 0x620]
cmp eax, dword [ebp + 0x1c]
jb 0x10125df
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1012742
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012742
test byte [eax + 0x1c], 4
je 0x1012742
cmp byte [eax + 0x19], 3
jb 0x1012742
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x1001a94
push 0x88
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push dword [ebp - 0x630]
or dword [ebp - 0x62c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10128c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012917
test byte [eax + 0x1c], 4
je 0x1012917
cmp byte [eax + 0x19], 2
jb 0x1012917
push edi
push dword [ebp - 0x630]
push 0x1001a94
push 0x89
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
jmp 0x1012917
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012917
test byte [eax + 0x1c], 4
je 0x1012917
cmp byte [eax + 0x19], 2
jb 0x1012917
push edi
push 0x1001a94
push 0x83
jmp 0x10128b9
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012917
test byte [eax + 0x1c], 4
je 0x1012917
cmp byte [eax + 0x19], 2
jb 0x1012917
push edi
push 0x1001a94
push 0x84
jmp 0x10128b9
mov ecx, eax
and ecx, 0x1fff0000
movzx edi, ax
cmp ecx, 0x70000
je 0x1012826
mov edi, eax
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1012917
test byte [ecx + 0x1c], 4
je 0x1012917
cmp byte [ecx + 0x19], 2
jb 0x1012917
push eax
push 0x1001a94
push 0x85
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
jmp 0x1012917
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012917
test byte [eax + 0x1c], 4
je 0x1012917
cmp byte [eax + 0x19], 2
jb 0x1012917
push edi
push 0x1001a94
push 0x86
jmp 0x10128b9
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012917
test byte [eax + 0x1c], 4
je 0x1012917
cmp byte [eax + 0x19], 2
jb 0x1012917
push edi
push 0x1001a94
push 0x87
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1012917
push dword [ebp + 0x1c]
push dword [ebp - 0x634]
push dword [ebp - 0x628]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0104e0be
mov edi, eax
test edi, edi
je 0x1012a7e
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012915
test byte [eax + 0x1c], 4
je 0x1012915
cmp byte [eax + 0x19], 3
jb 0x1012915
push edi
push 0x1001a94
push 0x8a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
xor edi, edi
test edi, edi
je 0x1012a69
cmp dword [ebp - 0x628], 0
je 0x1012a69
mov eax, dword [ebp - 0x620]
cmp eax, dword [ebp + 0x1c]
jne 0x101293d
dec dword [ebp - 0x620]
xor esi, esi
mov ecx, dword [ebp - 0x628]
mov eax, dword [ecx + esi*8]
mov ecx, dword [ecx + esi*8 + 4]
mov edx, eax
or edx, ecx
je 0x1012a5c
push 0x104
lea edx, [ebp - 0x414]
push edx
push ecx
mov ecx, dword [0x1077e1c]
push eax
mov eax, dword [ebp - 0x634]
push dword [eax + esi*4]
call fcn.0100ebd8
test eax, eax
je 0x10129b9
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1012a5c
test byte [ecx + 0x1c], 4
je 0x1012a5c
cmp byte [ecx + 0x19], 3
jb 0x1012a5c
push eax
push 0x1001a94
push 0x8b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
jmp 0x1012a5c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x10019a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009a76
add esp, 0x14
test eax, eax
jge 0x1012a12
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1012a5c
test byte [ecx + 0x1c], 4
je 0x1012a5c
cmp byte [ecx + 0x19], 3
jb 0x1012a5c
push eax
push 0x1001a94
push 0x8c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
jmp 0x1012a5c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1012a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1012a5c
test byte [ecx + 0x1c], 4
je 0x1012a5c
cmp byte [ecx + 0x19], 3
jb 0x1012a5c
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001a94
push 0x8d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010091cb
inc esi
cmp esi, dword [ebp - 0x620]
jbe 0x101293f
cmp dword [ebp - 0x62c], 0xffffffff
je 0x1012a7e
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x628]
call fcn.0105c21c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 0x18