Function at 0x40c5df
Capabilities:
Access peb ldr_data
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x485de4
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4b2068]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2068]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [0x4b457c]
mov ebx, 0x4b457c
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
and dword [esp + 0xb0], 0
xor eax, eax
mov byte [esp + 0x90], 0
lea edi, [esp + 0x91]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0xb0], 1
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push dword [esp + 0x18]
mov byte [esp + 0xb4], 2
call dword [sym.imp.MSVCR80.dll_wcslen]
mov edi, eax
push 0x58
lea eax, [esp + 0x3c]
push 0
push eax
add edi, edi
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x44]
push eax
call fcn.00417209
push edi
push dword [esp + 0x30]
lea eax, [esp + 0x50]
push eax
call fcn.00417231
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004172cc
add esp, 0x28
xor edi, edi
movzx eax, byte [esp + edi + 0x90]
push eax
lea eax, [esp + 0x28]
push str._02x
push eax
call fcn.00404e7f
mov eax, dword [esp + 0x30]
add esp, 0xc
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x28]
call fcn.0040217c
inc edi
cmp edi, 0x10
jl 0x40c6e3
push dword [esp + 0x28]
lea ecx, [esp + 0x20]
call fcn.0040cbe9
lea edi, [esp + 0x14]
mov byte [esp + 0xb0], 3
call fcn.004024a3
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x20]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.0040217c
push dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
xor eax, eax
cmp dword [esi + 8], eax
je 0x40c7e2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
xor ebx, ebx
lea eax, [esi + 0xbc]
mov byte [esp + 0xb0], 4
cmp dword [eax], ebx
je 0x40c7b9
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x34]
push edx
push eax
call dword [ecx + 4]
test eax, eax
jne 0x40c7b9
cmp dword [esp + 0x2c], 1
jne 0x40c7b9
inc ebx
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
test ebx, ebx
jne 0x40c7e2
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x1c]
call fcn.0040cb0f
jmp 0x40c7f0
push dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push esi
call fcn.0040ca8c
mov esi, eax
test esi, esi
je 0x40c80a
push dword [esp + 0x28]
call edi
push dword [esp + 0x28]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, esi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0047f7b2
mov esp, ebp
pop ebp
ret 0xc