Function at 0x414460
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4a92a4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00401c90
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ebx
push ecx
lea ecx, [ebp - 0x14]
mov edx, edi
call fcn.00471070
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41454c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
setne al
test eax, eax
jne 0x4144ed
push 0x80004005
call fcn.00401b40
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
push ecx
push eax
call fcn.00473c01
add esp, 8
test eax, eax
je 0x414506
push esi
jmp 0x4146dc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
lea edx, [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.00471070
mov ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x414532
push 0x80004005
call fcn.00401b40
mov eax, dword [esi]
push ecx
push eax
call fcn.00473c01
add esp, 8
test eax, eax
je 0x4146e8
push esi
jmp 0x4146dc
lea esi, [ebp - 0x1c]
mov eax, edi
call fcn.00471040
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41456f
test al, 0x10
jne 0x41456f
mov eax, 1
jmp 0x414571
xor eax, eax
test eax, eax
mov eax, dword [ebp - 0x1c]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414596
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x4146d8
lea ebx, [edi + 4]
lea esi, [ebp - 0x1c]
mov eax, ebx
call fcn.00471040
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4145c6
test al, 0x10
jne 0x4145c6
mov eax, 1
jmp 0x4145c8
xor eax, eax
test eax, eax
mov eax, dword [ebp - 0x1c]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x414666
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
push edi
call fcn.004148a0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41462a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [ebp + 0x10]
mov eax, edi
call fcn.00471040
mov edi, eax
lea esi, [ebp + 8]
mov eax, ebx
mov byte [ebp - 4], 2
call fcn.00471040
mov edi, dword [edi]
mov eax, dword [eax]
push 1
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4146e8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push ebx
push edx
mov ebx, edi
call fcn.00414750
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41470b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc