Function at 0x495640
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x9314]
xor ebx, ebx
mov cl, 1
mov byte [ebp - 0xd], cl
cmp eax, ebx
je 0x495ac3
lea esi, [ebp - 0x7c]
call fcn.00519c50
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x78], ebx
jle 0x495a92
mov eax, dword [edi + 0x9314]
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 0xc], ebx
jle 0x4956c6
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, eax
je 0x4956c6
sub eax, ecx
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], ebx
jle 0x495946
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp - 0x7c]
mov eax, edi
cmp edi, ebx
jne 0x495702
mov eax, 0x54ee24
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005074a0
add esp, 8
cmp dword [ebp - 0x3c], ebx
jle 0x495728
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
push ecx
push ebx
push edx
call fcn.005226e0
add esp, 0xc
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9314]
cmp dword [eax + 0xc], ebx
jle 0x49582d
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp esi, eax
je 0x49582d
sub eax, esi
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], ebx
jl 0x49582d
cmp dword [ebp - 0x14], eax
jge 0x49582d
mov ecx, dword [ebp - 0x18]
lea eax, [esi + ecx]
lea ecx, [ebp - 0x40]
call fcn.00508010
cmp dword [ebp - 0x3c], ebx
jle 0x495830
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x4957a0
cmp eax, ecx
jge 0x4957a0
mov edx, dword [ebp - 0x28]
cmp word [edx + eax*2], 0x5c
je 0x4957d9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.005083b0
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00508010
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x4957d9
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.005081a0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00508010
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x495816
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x495822
mov eax, 0x54ee24
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x495830
mov byte [ebp - 0xd], bl
mov eax, edi
cmp edi, ebx
jne 0x49583b
mov eax, 0x54ee24
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.005074a0
add esp, 8
cmp dword [ebp - 0x30], ebx
jle 0x495861
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
push eax
push ebx
push ecx
call fcn.005226e0
add esp, 0xc
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9314]
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
push edx
push ecx
mov ecx, esi
call fcn.004d3e30
test al, al
je 0x49592f
cmp dword [ebp - 0x30], ebx
jle 0x495932
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x4958a2
cmp eax, ecx
jge 0x4958a2
mov edx, dword [ebp - 0x28]
cmp word [edx + eax*2], 0x5c
je 0x4958db
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.005083b0
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00508010
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x4958db
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.005081a0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00508010
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x70]
cmp eax, ebx
je 0x495918
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x495924
mov eax, 0x54ee24
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x495932
mov byte [ebp - 0xd], bl
add dword [ebp - 0x18], 0x1c
inc esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x1c]
jl 0x4956f4
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 8
mov eax, dword [edi + 0x9314]
push edx
push eax
xor ecx, ecx
call fcn.004d3e30
cmp al, bl
jne 0x4959af
mov eax, dword [edi + 0x9314]
cmp dword [eax + 0xc], ebx
jle 0x495a41
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp esi, eax
je 0x495a41
sub eax, esi
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jle 0x495a41
mov eax, esi
lea ecx, [ebp - 0x4c]
call fcn.00508010
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
jne 0x4959bb
mov eax, 0x54ee24
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov word [ecx], dx
mov edx, eax
mov dword [ebp + 8], esp
lea edi, [edx + 2]
mov si, word [edx]
add edx, 2
cmp si, bx
jne 0x4959d7
sub edx, edi
sar edx, 1
push edx
call fcn.004020a0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
jne 0x4959fc
mov eax, 0x54ee24
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov word [ecx], dx
mov edx, eax
mov dword [ebp - 0x1c], esp
lea edi, [edx + 2]
jmp 0x495a20
mov si, word [edx]
add edx, 2
cmp si, bx
jne 0x495a20
sub edx, edi
sar edx, 1
push edx
call fcn.004020a0
mov byte [ebp - 4], 8
call fcn.00401710
add esp, 0x38
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x495a55
push eax
call fcn.0051ebab
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x495a69
push eax
call fcn.0051ebab
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x495a7d
push eax
call fcn.0051ebab
add esp, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x495a95
push eax
call fcn.0051ebab
add esp, 4
jmp 0x495a95
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x495aac
push eax
call fcn.0051ebab
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4