Function at 0x10012620
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2a4e
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x100ff5d4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x68], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10105830]
cmp eax, dword [ecx + 4]
jle 0x100126c9
push 0x10105830
call fcn.1006c45f
add esp, 4
cmp dword [0x10105830], 0xffffffff
jne 0x100126c9
push 0x100a3c60
mov dword [0x10105968], 0xf
mov dword [0x10105964], 0
mov byte [0x10105954], 0
call fcn.1006c89b
push 0x10105830
call fcn.1006c420
add esp, 8
push esi
lea edx, [ebx + 0x48]
lea ecx, [ebp - 0x58]
call fcn.10013cc0
push 0x100bb6e4
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000e020
add esp, 8
mov edi, eax
mov esi, 0x10105954
cmp edi, esi
je 0x10012735
mov eax, dword [0x10105968]
cmp eax, 0x10
jb 0x10012712
inc eax
mov ecx, esi
push eax
push dword [0x10105954]
call fcn.10001ca0
push edi
mov ecx, esi
mov dword [0x10105968], 0xf
mov dword [0x10105964], 0
mov byte [0x10105954], 0
call fcn.10001c30
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1001274a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001ca0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x10012778
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10001ca0
cmp dword [0x10105968], 0x10
lea edi, [ebx + 0x18]
mov eax, esi
cmovae eax, dword [0x10105954]
cmp dword [edi + 0x14], 0x10
jb 0x10012795
mov ecx, dword [edi]
jmp 0x10012797
mov ecx, edi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x100128fd
cmp dword [0x10105968], 0x10
mov eax, esi
push 0x80
cmovae eax, dword [0x10105954]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [0x10105968], 0x10
mov eax, esi
push 0
cmovae eax, dword [0x10105954]
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edi, eax
test edi, edi
je 0x100128d9
mov edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.1000e8c0
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x60]
call fcn.10001700
lea ecx, [ebp - 0x40]
call fcn.1000e230
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x10012812
mov eax, dword [eax]
mov edx, eax
mov ecx, edi
call fcn.1000e9f0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x10012830
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x2c], 7
push eax
push edi
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov edi, dword [ebp - 0x64]
push 0x100bb804
push edi
call fcn.1008856b
add esp, 8
test eax, eax
jne 0x1001287c
cmp dword [0x10105968], 0x10
mov ecx, ebx
cmovae esi, dword [0x10105954]
push esi
call fcn.10012b70
jmp 0x1001292a
push 0x100bb80c
push edi
call fcn.1008856b
add esp, 8
test eax, eax
jne 0x100128a9
cmp dword [0x10105968], 0x10
mov ecx, ebx
cmovae esi, dword [0x10105954]
push esi
call fcn.10012df0
jmp 0x1001292a
push 0x100bb814
push edi
call fcn.1008856b
add esp, 8
test eax, eax
jne 0x10012928
push dword [ebp - 0x5c]
cmp dword [0x10105968], 0x10
mov ecx, ebx
push dword [ebp - 0x68]
cmovae esi, dword [0x10105954]
push esi
call fcn.10012fe0
jmp 0x1001292a
cmp dword [0x10105968], 0x10
cmovae esi, dword [0x10105954]
push esi
push str.cant_get_handle:__s_n
call fcn.1000e190
push eax
call fcn.1000b0b0
add esp, 0xc
jmp 0x10012928
cmp dword [0x10105968], 0x10
cmovae esi, dword [0x10105954]
cmp dword [edi + 0x14], 0x10
jb 0x10012913
mov edi, dword [edi]
push esi
push edi
push str.copy_file_error__srcPath:__s__destPath:__s_n
call fcn.1000e190
push eax
call fcn.1000b0b0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret 0x10