Function at 0x4586b6
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469361
mov eax, dword fs:[0]
push eax
mov eax, 0x14a4
call fcn.004487a0
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x4063f4
lea ecx, [ebp - 0x14b0]
call fcn.004132cd
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x14b0]
push eax
lea eax, [ebp - 0x1480]
push eax
call fcn.004556fe
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x14b0]
call fcn.00411dad
push dword [0x47dc00]
call fcn.0043f2cf
pop ecx
mov dword [ebp - 0x1490], eax
call fcn.0044e6aa
cmp dword [ebx + 0x18], 8
mov esi, dword [eax + 0x40]
mov dword [ebp - 0x1488], esi
jb 0x458752
mov eax, dword [ebx + 4]
jmp 0x458755
lea eax, [ebx + 4]
push 0x4063ec
push eax
lea eax, [ebp - 0x148c]
push eax
call fcn.0046012b
add esp, 0xc
test eax, eax
je 0x4587af
cmp esi, edi
je 0x45877f
push 0x406368
push esi
call fcn.00455493
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x1480]
call fcn.00411dad
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dff7
leave
ret 8
cmp dword [ebp - 0x1468], 8
mov eax, dword [ebp - 0x147c]
jae 0x4587c4
lea eax, [ebp - 0x147c]
push 0x406360
push eax
lea eax, [ebp - 0x1494]
push eax
call fcn.0046012b
add esp, 0xc
test eax, eax
je 0x4587f4
push dword [ebp - 0x148c]
call fcn.0044a1c0
pop ecx
cmp esi, edi
je 0x45877f
push 0x4062d8
jmp 0x458777
xor eax, eax
push 0x1450
mov word [ebp - 0x1464], ax
lea eax, [ebp - 0x1462]
push edi
push eax
mov byte [ebp - 0x1481], 0
call fcn.004433d0
push dword [ebp - 0x148c]
mov esi, 0xa28
lea eax, [ebp - 0x1464]
push esi
push eax
call fcn.0045ff9a
add esp, 0x18
test eax, eax
je 0x45892a
lea eax, [ebp - 0x1464]
push 0x4062c0
push eax
call fcn.0043f2df
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4588f2
add edi, 0x10
movzx eax, word [edi]
mov byte [ebp - 0x1481], 1
mov esi, edi
jmp 0x45886c
inc esi
inc esi
movzx eax, word [esi]
push eax
call fcn.0043ef1e
pop ecx
test eax, eax
jne 0x458867
xor eax, eax
push edi
mov word [esi], ax
call fcn.0043f2cf
cmp byte [ebp + 0xc], 0
pop ecx
je 0x4588a1
mov ecx, eax
and ecx, dword [ebp - 0x1490]
cmp ecx, dword [ebp - 0x1490]
je 0x4588a3
or eax, dword [ebp - 0x1490]
jmp 0x4588a3
xor eax, eax
sub esi, edi
push 0xa
sar esi, 1
inc esi
push esi
push edi
push eax
call fcn.0043fadf
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4588ba
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2]
mov ecx, eax
lea edx, [ebp - 0x1464]
sub ecx, edx
sar ecx, 1
mov edx, 0xa29
push 0x40eab8
sub edx, ecx
push edx
push eax
call fcn.0043efc4
add esp, 0xc
mov esi, 0xa28
push dword [ebp - 0x1494]
lea eax, [ebp - 0x1464]
push eax
call fcn.0045fee9
push dword [ebp - 0x148c]
lea eax, [ebp - 0x1464]
push esi
push eax
call fcn.0045ff9a
add esp, 0x14
test eax, eax
jne 0x458839
cmp byte [ebp - 0x1481], al
jne 0x458957
cmp byte [ebp + 0xc], 0
je 0x458957
push 0x4062a4
lea eax, [ebp - 0x1464]
push esi
push eax
call fcn.0043e613
push dword [ebp - 0x1494]
lea eax, [ebp - 0x1464]
push eax
call fcn.0045fee9
add esp, 0x14
push dword [ebp - 0x148c]
call fcn.0044a1c0
push dword [ebp - 0x1494]
call fcn.0044a1c0
cmp dword [ebx + 0x18], 8
pop ecx
pop ecx
lea edi, [ebx + 4]
jb 0x45897c
mov eax, dword [edi]
jmp 0x45897e
mov eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x4589b0
cmp dword [ebp - 0x1488], eax
je 0x4589a5
push 0x406218
push dword [ebp - 0x1488]
call fcn.00455493
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push 0
jmp 0x458784
cmp dword [ebx + 0x18], 8
jb 0x4589b8
mov edi, dword [edi]
cmp dword [ebp - 0x1468], 8
mov eax, dword [ebp - 0x147c]
jae 0x4589cd
lea eax, [ebp - 0x147c]
xor ebx, ebx
push ebx
push edi
push eax
call dword [0x47e08c]
test eax, eax
jne 0x458a00
cmp dword [ebp - 0x1488], ebx
je 0x4589f6
push 0x406198
push dword [ebp - 0x1488]
call fcn.00455493
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
jmp 0x458784
cmp dword [ebp - 0x1468], 8
mov eax, dword [ebp - 0x147c]
jae 0x458a15
lea eax, [ebp - 0x147c]
push eax
call esi
test eax, eax
jne 0x458a52
cmp dword [ebp - 0x1488], ebx
je 0x458a36
push 0x406110
push dword [ebp - 0x1488]
call fcn.00455493
pop ecx
pop ecx
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x1480]
call fcn.00411dad
mov al, bl
jmp 0x458793
mov bl, 1
jmp 0x458a38