Function at 0x41de40
Capabilities:
Access peb ldr_data
Copy file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46f718
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d1c]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
lea ecx, [esp + 0x64]
call fcn.0043d765
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x88], 0
call fcn.00401e60
push 0x475c0c
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x90], 1
call fcn.00402c10
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x8c], 2
call fcn.0043d7fd
test eax, eax
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x84], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41deea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41df12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x41e642
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 8]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], ebx
test ecx, ecx
jle 0x41e7b8
test ebx, ebx
jl 0x41e7b3
cmp ebx, dword [eax + 8]
jge 0x41e7b3
mov ecx, dword [eax + 4]
lea eax, [ecx + ebx*4]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401920
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
lea ebp, [esi - 0x10]
mov dword [esp + 0x44], esp
mov edi, esp
push ebp
mov byte [esp + 0x8c], 3
mov dword [esp + 0x48], ebp
call fcn.00401920
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00404ee0
add esp, 4
push 0
push esi
lea ecx, [esp + 0x6c]
call fcn.0043d7fd
lea ecx, [esp + 0x64]
mov edi, eax
call fcn.0043d361
test edi, edi
je 0x41e32b
push esi
call fcn.00407270
add esp, 4
test eax, eax
jne 0x41e32b
push str..__old
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00402c10
mov eax, dword [eax]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dffd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x41e059
push str..__old
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00402c10
mov eax, dword [eax]
push eax
mov byte [esp + 0x94], 4
call fcn.00407600
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x84], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e32b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e32b
call fcn.0043b055
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41e675
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push str..__old
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x90], 5
call fcn.00402c10
add esp, 0xc
mov eax, dword [eax]
push eax
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.backup_file_error__s_to__s_
mov byte [esp + 0x94], 6
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x474c40
mov byte [esp + 0x98], 7
call fcn.00401e60
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x98], 6
call fcn.004106c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x94], 8
call fcn.00402e00
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x84], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e127
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x84], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e14f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00408b90
add esp, 4
xor ebx, ebx
mov edi, edi
call fcn.0043b055
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41e675
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push ebx
push esi
lea ecx, [esp + 0x28]
push str._s.__old_d
push ecx
mov byte [esp + 0x94], 9
call fcn.00402e00
mov edi, dword [esp + 0x30]
add esp, 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x41e2c9
call fcn.0043b055
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41e675
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push edi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push str.backup_file_error__s_to__s_
mov byte [esp + 0x94], 0xa
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x70], esp
push 0x474c40
mov byte [esp + 0x98], 0xb
call fcn.00401e60
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x98], 0xa
call fcn.004106c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x94], 0xc
call fcn.00402e00
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x84], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x24]
push ebp
call fcn.00408b90
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x84], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e2b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, 0xa
jge 0x41e5f6
mov ebp, dword [esp + 0x40]
jmp 0x41e160
push edi
call fcn.00407600
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x84], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e2f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xa
jge 0x41e5f6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x84], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e327
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
dec ecx
cmp ebx, ecx
jne 0x41e452
mov edx, dword [esp + 0x8c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00401e60
push 0x475c0c
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x90], 0xd
call fcn.00402c10
mov eax, dword [eax]
add esp, 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e390
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x84], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e3b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0043b055
xor ecx, ecx
test edi, edi
je 0x41e66c
test eax, eax
setne cl
test ecx, ecx
je 0x41e675
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push str.update_file__s_
mov byte [esp + 0x90], 0xe
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x474c40
mov byte [esp + 0x94], 0xf
call fcn.00401e60
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x94], 0xe
call fcn.004106c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x90], 0x10
call fcn.00402e00
mov eax, dword [esp + 0x58]
mov byte [esp + 0x90], 0xe
jmp 0x41e569
mov ecx, dword [esp + 0x8c]
push ecx
lea ecx, [esp + 0x58]
call fcn.00401e60
push 0x475c0c
push eax
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x90], 0x14
call fcn.00402c10
mov eax, dword [eax]
add esp, 0xc
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e4ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x84], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e4d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0043b055
xor ecx, ecx
test edi, edi
je 0x41e733
test eax, eax
setne cl
test ecx, ecx
je 0x41e675
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push str.update_file__s_
mov byte [esp + 0x90], 0x15
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x474c40
mov byte [esp + 0x94], 0x16
call fcn.00401e60
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x94], 0x15
call fcn.004106c0
add esp, 0xc
mov eax, dword [eax]
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x90], 0x17
call fcn.00402e00
mov eax, dword [esp + 0x64]
mov byte [esp + 0x90], 0x15
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 0xc
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e588
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
push esi
call fcn.00408b90
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x88], 3
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e5b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x84], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e5db
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
inc ebx
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
jge 0x41e7b8
mov eax, dword [esp + 0x90]
jmp 0x41df36
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x84], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e61e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov byte [esp + 0x84], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e642
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x84], 0xffffffff
call fcn.0043d78e
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
test eax, eax
setne cl
test ecx, ecx
jne 0x41e67f
push 0x80004005
call fcn.00401530
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x8c]
push esi
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
mov bl, 0x11
push str.move_file_error__s_to__s_
mov byte [esp + 0x94], bl
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 0x474c40
mov byte [esp + 0x98], 0x12
call fcn.00401e60
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x98], bl
call fcn.004106c0
add esp, 0xc
mov byte [esp + 0x8c], 0x13
mov eax, dword [eax]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00402e00
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x94], bl
add esp, 0x10
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e71e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x28]
push edi
call fcn.00408b90
add esp, 4
lea eax, [edi - 0x10]
jmp 0x41e5fd
test eax, eax
setne cl
test ecx, ecx
jne 0x41e746
push 0x80004005
call fcn.00401530
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x8c]
push esi
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
mov bl, 0x18
push str.copy_file_error__s_to__s_
mov byte [esp + 0x94], bl
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 0x474c40
mov byte [esp + 0x98], 0x19
call fcn.00401e60
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x98], bl
call fcn.004106c0
add esp, 0xc
mov byte [esp + 0x8c], 0x1a
jmp 0x41e6e7
call fcn.0043ad73
lea ecx, [esp + 0x64]
mov dword [esp + 0x84], 0xffffffff
call fcn.0043d78e
mov al, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret