Function at 0x4955a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538290
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 0x495a23
lea esi, [ebp - 0x7c]
call fcn.00519b30
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x78], ebx
jle 0x4959f2
mov eax, dword [edi + 0x9314]
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 0xc], ebx
jle 0x495626
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, eax
je 0x495626
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 0x4958a6
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp - 0x7c]
mov eax, edi
cmp edi, ebx
jne 0x495662
mov eax, 0x54ee24
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005074a0
add esp, 8
cmp dword [ebp - 0x3c], ebx
jle 0x495688
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
push ecx
push ebx
push edx
call fcn.00522610
add esp, 0xc
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9314]
cmp dword [eax + 0xc], ebx
jle 0x49578d
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp esi, eax
je 0x49578d
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 0x49578d
cmp dword [ebp - 0x14], eax
jge 0x49578d
mov ecx, dword [ebp - 0x18]
lea eax, [esi + ecx]
lea ecx, [ebp - 0x40]
call fcn.00508010
cmp dword [ebp - 0x3c], ebx
jle 0x495790
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x495700
cmp eax, ecx
jge 0x495700
mov edx, dword [ebp - 0x28]
cmp word [edx + eax*2], 0x5c
je 0x495739
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 0x495739
push eax
call fcn.0051eadb
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 0x495776
push eax
call fcn.0051eadb
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 0x495782
mov eax, 0x54ee24
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x495790
mov byte [ebp - 0xd], bl
mov eax, edi
cmp edi, ebx
jne 0x49579b
mov eax, 0x54ee24
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.005074a0
add esp, 8
cmp dword [ebp - 0x30], ebx
jle 0x4957c1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
push eax
push ebx
push ecx
call fcn.00522610
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.004d3ec0
test al, al
je 0x49588f
cmp dword [ebp - 0x30], ebx
jle 0x495892
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x495802
cmp eax, ecx
jge 0x495802
mov edx, dword [ebp - 0x28]
cmp word [edx + eax*2], 0x5c
je 0x49583b
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 0x49583b
push eax
call fcn.0051eadb
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 0x495878
push eax
call fcn.0051eadb
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 0x495884
mov eax, 0x54ee24
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x495892
mov byte [ebp - 0xd], bl
add dword [ebp - 0x18], 0x1c
inc esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x1c]
jl 0x495654
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.004d3ec0
cmp al, bl
jne 0x49590f
mov eax, dword [edi + 0x9314]
cmp dword [eax + 0xc], ebx
jle 0x4959a1
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp esi, eax
je 0x4959a1
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 0x4959a1
mov eax, esi
lea ecx, [ebp - 0x4c]
call fcn.00508010
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
jne 0x49591b
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 0x495937
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 0x49595c
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 0x495980
mov si, word [edx]
add edx, 2
cmp si, bx
jne 0x495980
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 0x4959b5
push eax
call fcn.0051eadb
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4959c9
push eax
call fcn.0051eadb
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x4959dd
push eax
call fcn.0051eadb
add esp, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4959f5
push eax
call fcn.0051eadb
add esp, 4
jmp 0x4959f5
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x495a0c
push eax
call fcn.0051eadb
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