Function at 0x420820
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ea5e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4c7650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4c72d4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c72d4
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test byte [0x4e3064], 1
jne 0x42088d
or dword [0x4e3064], 1
mov byte [ebp - 4], 1
call fcn.00414610
push 0x4a0510
call fcn.0047a87e
add esp, 4
mov byte [ebp - 4], 0
call fcn.004205c0
test eax, eax
jne 0x4208ec
push 1
lea eax, [ebp - 0x10]
push 0x4aa61c
push eax
call fcn.004052b0
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x4e2ec8
call fcn.004051c0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4208d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 1
call fcn.00418520
lea edi, [ebp - 0x14]
mov esi, eax
call fcn.00420790
mov ecx, edi
push ecx
push esi
mov byte [ebp - 4], 2
call fcn.00419be0
test al, al
je 0x42092b
mov eax, dword [esi + 0x60]
mov edx, dword [ebp - 0x14]
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.00418600
mov edx, dword [0x4c72d4]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4c72d4
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00419a50
mov byte [ebp - 4], 4
mov edx, dword [eax]
push edx
push 1
lea eax, [ebp - 0x18]
push str._d__s
push eax
call fcn.004052b0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or esi, 0xffffffff
add esp, 0x10
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420998
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x4e2ebc
call fcn.004051c0
cmp edi, 1
je 0x420a49
push edi
lea edx, [ebp - 0x10]
push 0x4aa61c
push edx
call fcn.004052b0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4e2ec8
call fcn.004051c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4208d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x420aac
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
mov esp, ebp
pop ebp
ret