Function at 0x466720
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x466ab2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x466a97
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
je 0x466a97
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jle 0x4667fe
jmp 0x46678d
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2c]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2c]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0x24]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x24], 0
jne 0x4667cf
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x2c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sub edx, 2
lea ecx, [ebp - 0x28]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x28], 0
je 0x466776
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
mov edx, dword [0x54988c]
mov edx, dword [edx]
call fcn.00403fa0
jne 0x4667fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00464ea8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
je 0x466856
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x466856
push 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x24]
mov ecx, 0x466acc
call fcn.00403edc
mov eax, dword [ebp - 0x24]
call fcn.00404054
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00404054
push eax
call sub.kernel32.dll_CopyFileA
neg eax
sbb eax, eax
neg eax
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
xor eax, eax
push ebp
push 0x466884
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dl, 1
mov eax, dword [0x40f724]
call fcn.00413b7c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4668cf
test ebx, ebx
je 0x466a97
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
jne 0x466906
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
je 0x466a55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x54988c]
mov edx, dword [edx]
call fcn.00403fa0
je 0x466a55
mov dl, 1
mov eax, dword [0x40f814]
call fcn.00402f00
mov edi, eax
mov dl, 1
mov eax, dword [0x40f814]
call fcn.00402f00
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 0
push 0
mov eax, edi
call fcn.004135cc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x18
call fcn.00402bd8
mov eax, edi
call fcn.004135e0
mov dword [ebp - 0x10], eax
mov eax, dword [0x466ad4]
mov dword [ebp - 0x20], eax
mov ax, word [0x466ad8]
mov word [ebp - 0x1c], ax
mov al, byte [0x466ada]
mov byte [ebp - 0x1a], al
mov dword [ebp - 0x18], 0x10000
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x28]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
je 0x46699e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x54988c]
mov edx, dword [edx]
call fcn.00403fa0
jne 0x4669a2
xor eax, eax
jmp 0x4669a4
mov al, 1
mov byte [ebp - 0x13], al
mov eax, edi
call fcn.004135e0
push edx
push eax
mov edx, edi
mov eax, esi
call fcn.00413928
push 0
push 0
mov eax, esi
call fcn.004135cc
mov eax, esi
call fcn.004135e0
mov ecx, eax
mov edx, dword [esi + 4]
or eax, 0xffffffff
call fcn.00465a48
mov dword [ebp - 0xc], eax
cmp byte [ebp - 0x13], 0
je 0x466a17
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00403e90
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00404054
xor ecx, ecx
pop edx
call fcn.00465738
test al, al
je 0x466a17
mov eax, esi
call fcn.004135e0
mov edx, eax
mov eax, dword [esi + 4]
call fcn.004659e0
push 0
push 0
mov eax, esi
call fcn.004135cc
push 0
push 0
mov eax, ebx
call fcn.00413630
lea edx, [ebp - 0x20]
mov ecx, 0x18
mov eax, ebx
call fcn.004138ac
mov edx, ebx
mov eax, esi
call fcn.00413d14
mov eax, edi
call fcn.00402f30
mov eax, esi
call fcn.00402f30
jmp 0x466a6d
push 0
push 0
mov eax, ebx
call fcn.00413630
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, ebx
call fcn.00402f30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00409218
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x2a], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x15], 0
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466ab9
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403c38
ret