Function at 0x40d270
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439980
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1028
call fcn.0041ac20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], esp
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d523
push edi
call fcn.00402c10
add esp, 4
test al, al
je 0x40d523
push str..clean
lea ecx, [ebp - 0x18]
push edi
push ecx
call fcn.0043017a
push eax
mov dword [ebp - 4], 0
call fcn.00402c10
or esi, 0xffffffff
add esp, 4
lea ecx, [ebp - 0x18]
mov bl, al
mov dword [ebp - 4], esi
call fcn.0042ff31
test bl, bl
je 0x40d315
mov esi, dword [edi]
push str..clean
lea edx, [ebp + 8]
push edi
push edx
call fcn.0043017a
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp + 8]
jmp 0x40d51e
mov ecx, dword [0x44cad0]
mov dword [ebp - 0x20], ecx
push str..new
lea edx, [ebp - 0x1c]
push edi
push edx
mov dword [ebp - 4], 1
call fcn.0043017a
mov eax, dword [0x44cad0]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push 0x44b07c
push eax
mov byte [ebp - 4], 3
call fcn.0041ac06
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp - 0x2c], ebx
jne 0x40d379
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0042ff31
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0042ff31
mov dword [ebp - 4], esi
jmp 0x40d51b
mov ecx, dword [ebp - 0x1c]
push 0x44b598
push ecx
call fcn.0041ac06
add esp, 8
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
push ebx
jne 0x40d3a1
call fcn.0041aaf6
add esp, 4
jmp 0x40d4fc
lea edx, [ebp - 0x1038]
push 0x1000
push edx
call fcn.0041ab73
add esp, 0xc
test eax, eax
je 0x40d479
lea eax, [ebp - 0x1038]
lea ecx, [ebp - 0x14]
push eax
call fcn.0043006e
lea ecx, [ebp - 0x14]
call fcn.0042acf9
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d446
cmp byte [eax], 0x23
je 0x40d446
push 0x20
lea ecx, [ebp - 0x14]
call fcn.004303ac
push 9
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004303ac
cmp esi, 0xffffffff
mov ecx, esi
jne 0x40d402
mov ecx, eax
cmp eax, 0xffffffff
je 0x40d40d
cmp eax, ecx
jge 0x40d40d
mov ecx, eax
test ecx, ecx
jl 0x40d446
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042a7ae
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 4
lea ecx, [eax + 0x68]
call fcn.00411610
lea ecx, [ebp - 0x30]
mov bl, al
mov byte [ebp - 4], 3
call fcn.0042ff31
test bl, bl
mov ebx, dword [ebp - 0x2c]
je 0x40d459
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1038]
push ecx
push edx
call fcn.0041acd0
add esp, 8
push ebx
lea eax, [ebp - 0x1038]
push 0x1000
push eax
call fcn.0041ab73
add esp, 0xc
test eax, eax
jne 0x40d3bd
mov esi, dword [ebp - 0x18]
push ebx
call fcn.0041aaf6
push esi
call fcn.0041aaf6
add esp, 8
test eax, eax
jne 0x40d4fc
push str..old
lea ecx, [ebp - 0x24]
push edi
push ecx
call fcn.0043017a
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 7
call fcn.00401a10
jmp 0x40d4be
mov ecx, dword [ebp - 0x24]
mov eax, dword [edi]
push ecx
push eax
mov dword [ebp - 4], 6
call fcn.0043136d
mov eax, dword [edi]
mov edx, dword [ebp - 0x1c]
push eax
push edx
call fcn.0043136d
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 9
call fcn.00401a10
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 3
call fcn.0042ff31
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0042ff31
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0042ff31
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042ff31
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4