Function at 0x4587eb
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469793
mov eax, dword fs:[0]
push eax
mov eax, 0x14a4
call fcn.004487f0
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.00455831
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x14b0]
call fcn.00411dad
push dword [0x47dc00]
call fcn.0043f32a
pop ecx
mov dword [ebp - 0x1490], eax
call fcn.0044e701
cmp dword [ebx + 0x18], 8
mov esi, dword [eax + 0x40]
mov dword [ebp - 0x1488], esi
jb 0x458887
mov eax, dword [ebx + 4]
jmp 0x45888a
lea eax, [ebx + 4]
push 0x4063ec
push eax
lea eax, [ebp - 0x148c]
push eax
call fcn.0046026c
add esp, 0xc
test eax, eax
je 0x4588e4
cmp esi, edi
je 0x4588b4
push 0x406368
push esi
call fcn.004555c6
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.0043e052
leave
ret 8
cmp dword [ebp - 0x1468], 8
mov eax, dword [ebp - 0x147c]
jae 0x4588f9
lea eax, [ebp - 0x147c]
push 0x406360
push eax
lea eax, [ebp - 0x1494]
push eax
call fcn.0046026c
add esp, 0xc
test eax, eax
je 0x458929
push dword [ebp - 0x148c]
call fcn.0044a210
pop ecx
cmp esi, edi
je 0x4588b4
push 0x4062d8
jmp 0x4588ac
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.00443420
push dword [ebp - 0x148c]
mov esi, 0xa28
lea eax, [ebp - 0x1464]
push esi
push eax
call fcn.004600db
add esp, 0x18
test eax, eax
je 0x458a5f
lea eax, [ebp - 0x1464]
push 0x4062c0
push eax
call fcn.0043f33a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x458a27
add edi, 0x10
movzx eax, word [edi]
mov byte [ebp - 0x1481], 1
mov esi, edi
jmp 0x4589a1
inc esi
inc esi
movzx eax, word [esi]
push eax
call fcn.0043ef79
pop ecx
test eax, eax
jne 0x45899c
xor eax, eax
push edi
mov word [esi], ax
call fcn.0043f32a
cmp byte [ebp + 0xc], 0
pop ecx
je 0x4589d6
mov ecx, eax
and ecx, dword [ebp - 0x1490]
cmp ecx, dword [ebp - 0x1490]
je 0x4589d8
or eax, dword [ebp - 0x1490]
jmp 0x4589d8
xor eax, eax
sub esi, edi
push 0xa
sar esi, 1
inc esi
push esi
push edi
push eax
call fcn.0043fb3a
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4589ef
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.0043f01f
add esp, 0xc
mov esi, 0xa28
push dword [ebp - 0x1494]
lea eax, [ebp - 0x1464]
push eax
call fcn.0046002a
push dword [ebp - 0x148c]
lea eax, [ebp - 0x1464]
push esi
push eax
call fcn.004600db
add esp, 0x14
test eax, eax
jne 0x45896e
cmp byte [ebp - 0x1481], al
jne 0x458a8c
cmp byte [ebp + 0xc], 0
je 0x458a8c
push 0x4062a4
lea eax, [ebp - 0x1464]
push esi
push eax
call fcn.0043e66e
push dword [ebp - 0x1494]
lea eax, [ebp - 0x1464]
push eax
call fcn.0046002a
add esp, 0x14
push dword [ebp - 0x148c]
call fcn.0044a210
push dword [ebp - 0x1494]
call fcn.0044a210
cmp dword [ebx + 0x18], 8
pop ecx
pop ecx
lea edi, [ebx + 4]
jb 0x458ab1
mov eax, dword [edi]
jmp 0x458ab3
mov eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x458ae5
cmp dword [ebp - 0x1488], eax
je 0x458ada
push 0x406218
push dword [ebp - 0x1488]
call fcn.004555c6
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push 0
jmp 0x4588b9
cmp dword [ebx + 0x18], 8
jb 0x458aed
mov edi, dword [edi]
cmp dword [ebp - 0x1468], 8
mov eax, dword [ebp - 0x147c]
jae 0x458b02
lea eax, [ebp - 0x147c]
xor ebx, ebx
push ebx
push edi
push eax
call dword [0x47e08c]
test eax, eax
jne 0x458b35
cmp dword [ebp - 0x1488], ebx
je 0x458b2b
push 0x406198
push dword [ebp - 0x1488]
call fcn.004555c6
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
jmp 0x4588b9
cmp dword [ebp - 0x1468], 8
mov eax, dword [ebp - 0x147c]
jae 0x458b4a
lea eax, [ebp - 0x147c]
push eax
call esi
test eax, eax
jne 0x458b87
cmp dword [ebp - 0x1488], ebx
je 0x458b6b
push 0x406110
push dword [ebp - 0x1488]
call fcn.004555c6
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 0x4588c8
mov bl, 1
jmp 0x458b6d