Function at 0x494eb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0f96
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x25], 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x24
call fcn.004459a0
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.00491090
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jle 0x4950cd
push 0x12
push 0
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, 1
mov word [ebp - 0x20], cx
imul edx, dword [ebp - 0x40], 0x104
add edx, 4
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 0x12
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call sub.mfc120u.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x4950c8
push 0x12
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0xb0]
call fcn.004906e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.004910b0
lea ecx, [ebp - 0xb0]
call fcn.00490400
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x34]
sub edx, 0x12
cmp dword [ebp - 0x3c], edx
jne 0x4950a4
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x12
push edx
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.004152e0
mov byte [ebp - 4], 1
push 0x104
lea ecx, [ebp - 0x70]
call fcn.00415890
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x104
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00444b40
push 0xffffffffffffffff
lea ecx, [ebp - 0x70]
call fcn.00415930
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.004153a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.004159b0
push 0x52ea94
lea ecx, [ebp - 0xa0]
call fcn.004153a0
mov byte [ebp - 4], 3
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x88]
call fcn.00415710
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.00415310
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x88]
call fcn.004157f0
push eax
lea ecx, [ebp - 0x70]
call fcn.004157f0
push eax
call fcn.00444860
movzx edx, al
test edx, edx
je 0x495089
mov byte [ebp - 0x25], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00415310
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00415310
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call sub.mfc120u.dll_Ordinal_266
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00490760
jmp 0x4951eb
lea ecx, [ebp - 0x7c]
call fcn.004152e0
mov dword [ebp - 4], 4
push 0x104
lea ecx, [ebp - 0x7c]
call fcn.00415890
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x104
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00444b40
push 0xffffffffffffffff
lea ecx, [ebp - 0x7c]
call fcn.00415930
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004153a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.004159b0
push str..bin
lea ecx, [ebp - 0xbc]
call fcn.004153a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00415710
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00415310
lea ecx, [ebp - 0x5c]
call fcn.00415d20
test eax, eax
jne 0x4951d0
lea ecx, [ebp - 0x94]
call fcn.004152e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
call fcn.004157f0
push eax
lea ecx, [ebp - 0x7c]
call fcn.004157f0
push eax
push 0x104
lea ecx, [ebp - 0x94]
call fcn.00415890
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x94]
call fcn.00415930
lea ecx, [ebp - 0x94]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.00415310
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00415310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00415310
mov ecx, dword [ebp - 0x30]
add ecx, 0x24
call fcn.004459d0
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e11cc
mov esp, ebp
pop ebp
ret 0xc