Function at 0x4109e0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x428d3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
mov eax, dword [esp + 0x194]
mov ecx, dword [eax + 0x18]
add eax, 4
cmp ecx, 0x10
mov dword [esp + 4], eax
jb 0x410a13
mov eax, dword [eax]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x54]
push ecx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
or ebp, 0xffffffff
cmp eax, ebp
push eax
setne byte [esp + 0x16]
call ebx
mov esi, dword [esp + 0x1a8]
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
mov dword [esp + 0x34], eax
jb 0x410a4e
mov eax, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
call edi
cmp eax, ebp
push eax
setne byte [esp + 0x17]
call ebx
mov al, byte [esp + 0x12]
xor ebx, ebx
cmp al, bl
jne 0x410ac3
push 0x1b
push str.Source_file_does_not_exists
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401890
mov eax, dword [esp + 0x1a4]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1a4], ebx
call fcn.00412300
mov eax, dword [esp + 0x38]
add esp, 8
cmp eax, 0x10
jb 0x410abc
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041aebd
add esp, 4
xor al, al
jmp 0x410ced
cmp byte [esp + 0x13], bl
je 0x410b67
cmp byte [esp + 0x1ac], bl
lea ecx, [esp + 0x18]
je 0x410c28
push str.Target_file_already_exists__overwriting
call fcn.00401a90
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1a4], 1
call fcn.00412300
mov eax, dword [esp + 0x38]
add esp, 8
cmp eax, 0x10
mov dword [esp + 0x19c], ebp
jb 0x410b1e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041aebd
add esp, 4
cmp byte [esp + 0x1b0], bl
je 0x410b67
push str.Forcing_writable_attribute_on_targetPath
lea ecx, [esp + 0x1c]
call fcn.00401a90
lea edx, [esp + 0x18]
push esi
push edx
mov dword [esp + 0x1a4], 2
call fcn.00412300
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x19c], ebp
call fcn.004013f0
push esi
call fcn.00410850
add esp, 4
push 0xe
mov edi, 0xf
push str._t_Source_File
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401890
mov edx, dword [esp + 0x1a4]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1a4], 4
call fcn.00412300
mov eax, dword [esp + 0x38]
add esp, 8
cmp eax, 0x10
mov dword [esp + 0x19c], ebp
jb 0x410bc5
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041aebd
add esp, 4
push 0xe
push str._t_Target_File
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401890
lea edx, [esp + 0x18]
push esi
push edx
mov dword [esp + 0x1a4], 5
call fcn.00412300
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1a4], ebp
mov ebp, 0x10
add esp, 8
cmp eax, ebp
jb 0x410c1b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041aebd
add esp, 4
cmp dword [esi + 0x18], ebp
jb 0x410c68
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx]
jmp 0x410c6c
push str.Target_file_already_exists__not_overwriting
call fcn.00401a90
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1a4], 3
call fcn.00412300
mov eax, dword [esp + 0x38]
add esp, 8
cmp eax, 0x10
jb 0x410c61
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041aebd
add esp, 4
mov al, 1
jmp 0x410ced
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x1a4]
cmp dword [edx + 0x18], ebp
mov eax, dword [esp + 0x14]
jb 0x410c7e
mov eax, dword [eax]
mov dl, byte [esp + 0x1ac]
xor ecx, ecx
cmp dl, bl
sete cl
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
test eax, eax
push str.Copy_file_result
lea ecx, [esp + 0x40]
setne byte [esp + 0x1c]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00401890
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x1a4], 6
call fcn.00412480
mov eax, dword [esp + 0x58]
add esp, 8
cmp eax, ebp
jb 0x410ce9
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0041aebd
add esp, 4
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x190
ret