Function at 0x40adc0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430432
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x43c4c0]
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 eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ecx
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.00406970
mov edi, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], edi
jbe 0x40ae50
push edi
xor ecx, ecx
lea esi, [ebp - 0x64]
lea edx, [ebp - 0x48]
call fcn.004073b0
mov ecx, eax
mov byte [ebp - 4], 1
mov eax, dword [ecx + 0x10]
push 0x435564
mov dword [ebp - 0x6c], 1
call fcn.00409300
mov byte [ebp - 0x65], 1
test eax, eax
jne 0x40ae54
mov byte [ebp - 0x65], 0
mov dword [ebp - 4], ebx
test byte [ebp - 0x6c], 1
je 0x40ae73
and dword [ebp - 0x6c], 0xfffffffe
cmp dword [ebp - 0x50], 8
jb 0x40ae73
mov eax, dword [ebp - 0x64]
push eax
call fcn.00418932
add esp, 4
cmp byte [ebp - 0x65], 0
je 0x40aeb2
lea ecx, [ebp - 0x64]
push 0x435564
push ecx
lea ebx, [ebp - 0x48]
call fcn.00408eb0
add esp, 8
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 2
call fcn.00402a70
mov byte [ebp - 4], 0
cmp dword [ebp - 0x50], 8
jb 0x40aeb0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00418932
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp - 0x70]
xor eax, eax
push ebx
mov word [ebp - 0x2c], ax
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00406970
mov edi, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], edi
jbe 0x40af0d
push edi
xor ecx, ecx
lea esi, [ebp - 0x64]
lea edx, [ebp - 0x2c]
call fcn.004073b0
mov ecx, eax
mov byte [ebp - 4], 4
mov eax, dword [ecx + 0x10]
or dword [ebp - 0x6c], 2
push 0x435564
call fcn.00409300
test eax, eax
je 0x40af0d
mov bl, 1
jmp 0x40af0f
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x6c], 2
mov edi, 8
je 0x40af32
cmp dword [ebp - 0x50], edi
jb 0x40af32
mov edx, dword [ebp - 0x64]
push edx
call fcn.00418932
add esp, 4
test bl, bl
je 0x40af6e
lea eax, [ebp - 0x64]
push 0x435564
push eax
lea ebx, [ebp - 0x2c]
call fcn.00408eb0
add esp, 8
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 5
call fcn.00402a70
cmp dword [ebp - 0x50], 8
jb 0x40af69
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00418932
add esp, 4
mov edi, 8
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40af79
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40af84
lea eax, [ebp - 0x48]
xor edx, edx
cmp byte [ebp + 0xc], dl
sete dl
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40afd3
cmp dword [ebp - 0x18], edi
jb 0x40afaa
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00418932
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x40afcf
mov edx, dword [ebp - 0x48]
push edx
call fcn.00418932
add esp, 4
xor eax, eax
jmp 0x40b013
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x18], edi
jb 0x40afec
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00418932
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x40b011
mov edx, dword [ebp - 0x48]
push edx
call fcn.00418932
add esp, 4
mov eax, esi
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.0041893d
mov esp, ebp
pop ebp
ret