Function at 0x495768
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x52
push 0
push 0
dec ecx
jne 0x495771
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00407048
xor eax, eax
push ebp
push 0x495d15
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, esi
call fcn.004070b4
cmp dword [ebp - 4], 0
je 0x4957e2
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x260], eax
mov byte [ebp - 0x25c], 0x11
lea edx, [ebp - 0x260]
xor ecx, ecx
mov eax, 0x495d34
call fcn.00412908
mov edx, dword [ebp - 0x258]
lea eax, [ebp - 8]
call fcn.00407468
test ebx, ebx
je 0x495823
cmp byte [0x4ae110], 0
jne 0x495823
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0x11
lea edx, [ebp - 0x260]
xor ecx, ecx
mov eax, 0x495d5c
call fcn.00412908
mov edx, dword [ebp - 0x264]
lea eax, [ebp - 8]
call fcn.00407468
mov dword [ebp - 0x34], 0x104
lea eax, [ebp - 0xc]
mov edx, 0x105
call fcn.004073d0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x252]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 8]
call fcn.004072dc
mov eax, dword [ebp - 0x268]
push eax
push 0
mov eax, dword [0x4ae0f0]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov dword [ebp - 0x28], eax
xor ebx, ebx
cmp dword [ebp - 0x28], 0
jne 0x495925
mov eax, dword [ebp - 0x44]
and eax, 1
cmp eax, 1
jne 0x495925
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.0040720c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00411fcc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00411fcc
lea edx, [ebp - 0x26c]
mov eax, dword [ebp - 0x14]
call fcn.00412264
mov eax, dword [ebp - 0x26c]
mov edx, esi
call fcn.004077cc
jne 0x495925
mov eax, dword [ebp - 0xc]
call fcn.004070ec
push eax
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x495923
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x260], eax
mov byte [ebp - 0x25c], 0x11
lea edx, [ebp - 0x260]
xor ecx, ecx
mov eax, 0x495da0
call fcn.00412908
mov edx, dword [ebp - 0x270]
mov al, 8
call fcn.00496f24
mov bl, 1
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 8]
call fcn.004072dc
mov eax, dword [ebp - 0x274]
push eax
push 0
mov eax, dword [0x4ae0f0]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x80070005
jne 0x49598b
push 0x32
call sub.KERNEL32.DLL_Sleep_2
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x278]
mov edx, dword [ebp - 8]
call fcn.004072dc
mov eax, dword [ebp - 0x278]
push eax
push 0
mov eax, dword [0x4ae0f0]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
sub eax, 1
je 0x4959e0
sub eax, 2
je 0x4959e0
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp - 0x28c], esi
mov byte [ebp - 0x288], 0x11
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x284], eax
mov byte [ebp - 0x280], 0
lea edx, [ebp - 0x28c]
mov ecx, 1
mov eax, 0x495dd4
call fcn.00412908
mov edx, dword [ebp - 0x27c]
mov al, 8
call fcn.00496f24
jmp 0x4959eb
cmp dword [ebp - 0x28], 1
jne 0x4959eb
xor eax, eax
mov dword [ebp - 0x28], eax
test bl, bl
je 0x495c9e
mov eax, dword [ebp - 0x10]
call fcn.004984ac
mov eax, dword [ebp - 0x14]
call fcn.00498500
lea eax, [ebp - 0x290]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x260], eax
mov byte [ebp - 0x25c], 0x11
lea edx, [ebp - 0x260]
xor ecx, ecx
mov eax, 0x495e24
call fcn.00412908
mov edx, dword [ebp - 0x290]
mov al, 8
call fcn.00496f24
mov dl, 1
mov eax, dword [0x4411a0]
call fcn.00442254
mov dword [ebp - 0x30], eax
xor edx, edx
push ebp
push 0x495c97
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x30]
call fcn.0044233c
mov eax, dword [ebp - 0x30]
or dword [eax + 0x18], 0x100
lea eax, [ebp - 0x18]
mov edx, 0x495e5c
call fcn.004070b4
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
call fcn.004423a4
test al, al
je 0x495c81
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00412264
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x495ab7
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x495ab7
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x24]
call fcn.00406470
mov ebx, eax
test ebx, ebx
je 0x495ac2
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
test eax, eax
je 0x495adf
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x495adf
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406470
mov edi, eax
test edi, edi
je 0x495aea
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
sub ecx, 0x12
sub ecx, edi
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.00407834
mov edx, dword [ebp - 0x24]
mov eax, 0x495edc
call fcn.00407a20
mov ebx, eax
test ebx, ebx
jle 0x495b4f
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x495b2f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x495b2f
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x24]
call fcn.00406470
mov edi, eax
test edi, edi
je 0x495b3a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
sub ecx, ebx
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x24]
call fcn.00407834
jmp 0x495b5a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
call fcn.004070b4
push esi
push 0x495eec
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040760c
cmp dword [ebp - 4], 0
je 0x495b90
push dword [ebp - 8]
push 0x495eec
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040760c
jmp 0x495b9d
lea eax, [ebp - 8]
mov edx, 0x495eec
call fcn.00407468
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00412264
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x495bc5
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x495bc5
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x24]
call fcn.00406470
mov ebx, eax
test ebx, ebx
je 0x495bd0
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x20]
push eax
mov edx, ebx
sub edx, 0xf
mov ecx, 0x10
mov eax, dword [ebp - 0x24]
call fcn.00407834
push dword [ebp - 8]
push 0x495eec
push dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040760c
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 0x14]
call fcn.00411fcc
mov eax, dword [ebp - 0x294]
lea edx, [ebp - 0x24]
call fcn.00412264
mov eax, dword [ebp - 0x24]
mov edx, 0x495efc
call fcn.004077cc
jne 0x495c36
lea eax, [ebp - 8]
mov edx, 0x495f1c
call fcn.00407468
mov eax, dword [ebp - 0x24]
mov edx, 0x495f34
call fcn.004077cc
jne 0x495c52
lea eax, [ebp - 8]
mov edx, 0x495f50
call fcn.00407468
mov eax, dword [ebp - 0x24]
mov edx, 0x495f68
call fcn.004077cc
jne 0x495c6e
lea eax, [ebp - 8]
mov edx, 0x495f84
call fcn.00407468
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
call fcn.0044284c
mov eax, dword [ebp - 0x30]
call fcn.0044230c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495c9e
mov eax, dword [ebp - 0x30]
call fcn.00404f48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495d1c
lea eax, [ebp - 0x294]
mov edx, 2
call fcn.00407058
lea eax, [ebp - 0x27c]
call fcn.00407050
lea eax, [ebp - 0x278]
mov edx, 2
call fcn.00406c94
lea eax, [ebp - 0x270]
mov edx, 2
call fcn.00407058
lea eax, [ebp - 0x268]
call fcn.00406c7c
lea eax, [ebp - 0x264]
call fcn.00407050
lea eax, [ebp - 0x258]
call fcn.00407050
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00407058
ret