Function at 0x101244e
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 0x10124bb
test byte [eax + 0x1c], 4
je 0x10124bb
cmp byte [eax + 0x19], 5
jb 0x10124bb
push 0x1001a94
push 0x7d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
cmp dword [ebp + 0x1c], esi
jne 0x10124c8
push 0x57
pop eax
jmp 0x1012b51
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push edi
call fcn.0105e5e0
mov dword [ebp - 0x62c], eax
cmp eax, 0xffffffff
jne 0x101251d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012516
test byte [eax + 0x1c], 4
je 0x1012516
cmp byte [eax + 0x19], 2
jb 0x1012516
push esi
push edi
push 0x1001a94
push 0x7e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
mov eax, esi
jmp 0x1012b51
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.0100fb12
mov edi, eax
cmp edi, esi
je 0x101256e
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129dd
test byte [eax + 0x1c], 4
je 0x10129dd
cmp byte [eax + 0x19], 2
jb 0x10129dd
push edi
push 0x1001a94
push 0x7f
jmp 0x101297f
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.010119aa
mov esi, eax
test esi, esi
jge 0x10125d4
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10125b7
test byte [eax + 0x1c], 4
je 0x10125b7
cmp byte [eax + 0x19], 2
jb 0x10125b7
push esi
push 0x1001a94
push 0x80
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x10125cd
movzx edi, si
jmp 0x10129dd
mov edi, esi
jmp 0x10129dd
push dword [ebp - 0x624]
call fcn.0105c544
xor esi, esi
mov dword [ebp - 0x628], eax
cmp eax, esi
jne 0x101262c
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129e5
test byte [eax + 0x1c], 4
je 0x10129e5
cmp byte [eax + 0x19], 2
jb 0x10129e5
push dword [ebp - 0x624]
push 0x1001a94
push 0x81
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x10129e5
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.0105ccae
mov dword [ebp - 0x624], eax
cmp eax, esi
jne 0x1012696
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129e5
test byte [eax + 0x1c], 4
je 0x10129e5
cmp byte [eax + 0x19], 2
jb 0x10129e5
mov ecx, dword [ebp - 0x638]
push dword [ecx]
push 0x1001a94
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
jmp 0x10129e5
mov dword [ebp - 0x620], esi
cmp dword [ebp + 0x1c], esi
jbe 0x10127c2
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 0x10126c4
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 0x620]
lea esi, [eax + ecx*8]
call fcn.01048ffc
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, edx
mov ecx, eax
or ecx, esi
je 0x101286d
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.0100ec6f
mov edi, eax
test edi, edi
jne 0x10128a6
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x10019a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009acc
add esp, 0x14
test eax, eax
jl 0x10128d7
push 1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1012929
push dword [ebp - 0x624]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x638]
push eax
call fcn.0100bf87
mov edi, eax
test edi, edi
jne 0x101295f
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x101279e
add eax, 2
mov dword [ebp - 0x624], eax
jmp 0x10127a5
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 0x10126a5
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1012808
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1012808
test byte [eax + 0x1c], 4
je 0x1012808
cmp byte [eax + 0x19], 3
jb 0x1012808
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.0102ca9d
push dword [ebp - 0x630]
or dword [ebp - 0x62c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101298c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129dd
test byte [eax + 0x1c], 4
je 0x10129dd
cmp byte [eax + 0x19], 2
jb 0x10129dd
push edi
push dword [ebp - 0x630]
push 0x1001a94
push 0x89
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x10129dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129dd
test byte [eax + 0x1c], 4
je 0x10129dd
cmp byte [eax + 0x19], 2
jb 0x10129dd
push edi
push 0x1001a94
push 0x83
jmp 0x101297f
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129dd
test byte [eax + 0x1c], 4
je 0x10129dd
cmp byte [eax + 0x19], 2
jb 0x10129dd
push edi
push 0x1001a94
push 0x84
jmp 0x101297f
mov ecx, eax
and ecx, 0x1fff0000
movzx edi, ax
cmp ecx, 0x70000
je 0x10128ec
mov edi, eax
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x10129dd
test byte [ecx + 0x1c], 4
je 0x10129dd
cmp byte [ecx + 0x19], 2
jb 0x10129dd
push eax
push 0x1001a94
push 0x85
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
jmp 0x10129dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129dd
test byte [eax + 0x1c], 4
je 0x10129dd
cmp byte [eax + 0x19], 2
jb 0x10129dd
push edi
push 0x1001a94
push 0x86
jmp 0x101297f
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129dd
test byte [eax + 0x1c], 4
je 0x10129dd
cmp byte [eax + 0x19], 2
jb 0x10129dd
push edi
push 0x1001a94
push 0x87
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x10129dd
push dword [ebp + 0x1c]
push dword [ebp - 0x634]
push dword [ebp - 0x628]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0104e582
mov edi, eax
test edi, edi
je 0x1012b44
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10129db
test byte [eax + 0x1c], 4
je 0x10129db
cmp byte [eax + 0x19], 3
jb 0x10129db
push edi
push 0x1001a94
push 0x8a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
xor edi, edi
test edi, edi
je 0x1012b2f
cmp dword [ebp - 0x628], 0
je 0x1012b2f
mov eax, dword [ebp - 0x620]
cmp eax, dword [ebp + 0x1c]
jne 0x1012a03
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 0x1012b22
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.0100ec6f
test eax, eax
je 0x1012a7f
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1012b22
test byte [ecx + 0x1c], 4
je 0x1012b22
cmp byte [ecx + 0x19], 3
jb 0x1012b22
push eax
push 0x1001a94
push 0x8b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
jmp 0x1012b22
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x10019a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009acc
add esp, 0x14
test eax, eax
jge 0x1012ad8
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1012b22
test byte [ecx + 0x1c], 4
je 0x1012b22
cmp byte [ecx + 0x19], 3
jb 0x1012b22
push eax
push 0x1001a94
push 0x8c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
jmp 0x1012b22
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1012b22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1012b22
test byte [ecx + 0x1c], 4
je 0x1012b22
cmp byte [ecx + 0x19], 3
jb 0x1012b22
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001a94
push 0x8d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a6e9
inc esi
cmp esi, dword [ebp - 0x620]
jbe 0x1012a05
cmp dword [ebp - 0x62c], 0xffffffff
je 0x1012b44
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x628]
call fcn.0105c5dc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0x18