Function at 0x537218
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x5374bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
or word [eax + 0x54], 1
push ebp
call fcn.00536ffc
pop ecx
mov eax, dword [edi]
mov eax, dword [eax + 8]
test eax, eax
je 0x5372e0
cmp dword [eax + 0x24], 0
jle 0x5372e0
mov eax, 0x816
call fcn.0049dbf8
mov eax, dword [0x6726a0]
mov eax, dword [eax]
call fcn.0049d110
call fcn.00501d74
call fcn.0050111c
lea ecx, [ebp - 0xc]
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x24]
mov eax, 0x5374cc
call fcn.0065da0c
mov eax, dword [ebp - 0xc]
mov cl, 4
mov dl, 3
call fcn.00629794
movzx ebx, ax
mov eax, dword [0x6726a0]
mov eax, dword [eax]
call fcn.0049d10c
cmp ebx, 6
jne 0x5372bb
push ebp
call fcn.00537060
pop ecx
jmp 0x5372e0
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x24]
dec ebx
cmp ebx, 0
jl 0x5372e0
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_DeleteFileW
dec ebx
cmp ebx, 0xffffffff
jne 0x5372c9
mov eax, dword [edi]
mov eax, dword [eax + 8]
call fcn.004028c0
mov eax, dword [0x672208]
mov al, byte [eax]
sub al, 2
jae 0x5372fc
push ebp
call fcn.005370bc
pop ecx
mov eax, dword [0x672208]
mov al, byte [eax]
dec eax
sub al, 2
jae 0x5373cf
mov eax, dword [0x672438]
mov eax, dword [eax]
mov esi, dword [eax + 0x24]
dec esi
test esi, esi
jl 0x53738b
inc esi
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [0x672438]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + ebx*4]
call fcn.004038bc
mov eax, dword [ebp - 8]
call fcn.0062a904
test al, al
je 0x537356
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0062a920
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.004038bc
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0065d100
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.004038bc
mov edx, dword [ebp - 8]
mov eax, dword [edi]
call fcn.00536890
test al, al
je 0x53738b
mov eax, dword [edi]
add eax, 0x70
mov edx, dword [ebp - 8]
call fcn.004038bc
inc ebx
dec esi
jne 0x53731e
mov eax, dword [0x672208]
cmp byte [eax], 2
jne 0x5373cf
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
dec esi
test esi, esi
jl 0x5373c8
inc esi
xor ebx, ebx
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
call fcn.0059a5e8
call fcn.004da2b4
mov edx, 0x118
call fcn.004ed070
inc ebx
dec esi
jne 0x5373a5
push 0
call sub.user32.dll_PostQuitMessage
mov eax, dword [0x672714]
mov eax, dword [eax]
mov edx, 6
call fcn.00658458
mov ebx, 5
mov eax, dword [0x672714]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
lea esi, [eax + ebx*4]
lea edx, [ebp - 0x10]
mov eax, dword [esi]
call fcn.006302a0
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004038bc
cmp dword [esi], 0
je 0x537416
mov eax, dword [esi]
call fcn.0062af48
test al, al
jne 0x53742c
mov eax, ebx
lea edx, [ebp - 0x10]
call fcn.0047970c
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004038bc
jmp 0x537433
mov eax, esi
call fcn.0062b120
dec ebx
cmp ebx, 0xffffffff
jne 0x5373e5
call fcn.00501d74
call fcn.004fed6c
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x18], 0
jne 0x537474
mov eax, dword [0x672208]
mov al, byte [eax]
sub al, 2
jae 0x537474
mov eax, dword [0x672428]
test byte [eax + 0xb], 1
je 0x537474
mov al, 3
call fcn.00626064
test al, al
jne 0x537474
call fcn.005367a4
mov eax, dword [edi]
and word [eax + 0x54], 0xfffe
mov eax, dword [0x672428]
test byte [eax + 0x144], 0x10
je 0x537495
call fcn.00501d74
mov byte [eax + 0x27e], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5374c2
lea eax, [ebp - 0x10]
call fcn.00403880
lea eax, [ebp - 0xc]
call fcn.00403274
lea eax, [ebp - 8]
call fcn.00403880
ret