Function at 0x41f3cd
Capabilities:
Access peb ldr_data
Copy file
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48749b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4b2068]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2068]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [0x4b457c]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
or dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x40], ecx
mov esi, 0x4b457c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
and dword [esp + 0x148], 0
lea eax, [esp + 0x50]
push eax
call fcn.00412e4a
mov byte [esp + 0x148], 1
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x148], 2
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x148], 3
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x150], 4
call fcn.00402357
push edi
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x150], 5
call fcn.00402357
mov byte [esp + 0x148], 6
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
lea esi, [esp + 0x14]
mov byte [esp + 0x148], 7
call fcn.00420b9e
lea edi, [esp + 0x34]
mov byte [esp + 0x148], 8
call fcn.004024a3
mov byte [esp + 0x148], 7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040214e
push 0x5c
push 0x2f
lea eax, [esp + 0x38]
call fcn.0040f1f5
push 0x2f
push 0x5c
lea eax, [esp + 0x30]
call fcn.0040f1f5
push ebx
lea eax, [esp + 0x24]
push eax
call fcn.00402394
lea ecx, [esp + 0x20]
call fcn.0040813c
xor edi, edi
push edi
push ebx
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
jne 0x41f747
push ebx
lea esi, [esp + 0x54]
call fcn.00412ed6
cmp eax, edi
je 0x41f74b
push edi
push 0x497cec
push 0x497c30
mov ecx, esi
call fcn.00412f48
cmp eax, edi
mov dword [esp + 0x44], eax
jne 0x41f5d9
push ebx
lea eax, [esp + 0x18]
push eax
call fcn.00402357
push str..old.txt
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x150], 9
call fcn.004021d8
push edi
push dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, edi
jne 0x41f5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
push str.KChannel::RecursiveBackupIndex_fail__error:_d__path:_ws
mov esi, 0x4b4d74
mov dword [esp + 0x24], eax
call fcn.00411a60
add esp, 0xc
jmp 0x41f5c8
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040214e
jmp 0x41f74b
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x41f747
mov esi, dword [sym.imp.MSVCR80.dll_wcslen]
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push 0x497cf0
push eax
call fcn.00404e7f
add esp, 0xc
push 0x64
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
push 0x497c30
call fcn.0041305c
cmp eax, edi
je 0x41f747
lea eax, [esp + 0x6c]
push 0x497cf8
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x41f735
lea eax, [esp + 0x6c]
push eax
call esi
pop ecx
lea ecx, [esp + 0x6c]
mov ebx, eax
push ecx
lea eax, [esp + 0x30]
call fcn.004023bb
lea eax, [esp + 0x6c]
push eax
call esi
pop ecx
lea ecx, [esp + 0x6c]
mov ebx, eax
push ecx
lea eax, [esp + 0x20]
call fcn.004023bb
push 0x5c
push 0x2f
lea eax, [esp + 0x24]
call fcn.0040f1f5
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
call fcn.0040c38f
mov ebx, eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x158], 0xa
call fcn.0040c38f
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
mov byte [esp + 0x160], 0xb
call fcn.0040c38f
lea ecx, [esp + 0x50]
push str.index.txt
push ecx
mov ecx, eax
mov byte [esp + 0x168], 0xc
call fcn.0040400d
add esp, 0x20
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x148], 0xd
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
push eax
call fcn.0041f3cd
mov ebx, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.0040214e
mov byte [esp + 0x148], 7
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.0040214e
test ebx, ebx
jne 0x41f74b
xor edi, edi
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x44]
jl 0x41f5eb
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x14c], 0
call fcn.00412e91
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0047f7b2
mov esp, ebp
pop ebp
ret 8