Function at 0x56d0f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5a5ab7
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x498], ebx
jbe 0x56d1c3
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0056c870
mov esi, dword [esp + 0x20]
push 0x5c
push esi
call fcn.0057b53f
add esp, 0x10
cmp eax, ebx
jne 0x56d173
or eax, 0xffffffff
jmp 0x56d177
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x1c]
lea edx, [esp + 0x18]
call fcn.00403540
lea edi, [esp + 0x18]
mov byte [esp + 0x498], 1
call fcn.004035d0
mov byte [esp + 0x498], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x56d1bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
call fcn.0056c7d0
add esp, 4
mov word [esp + 0x47c], 0x5c
mov dword [esp + 0x480], ebx
mov dword [esp + 0x484], ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x5c8828
mov byte [esp + 0x4a0], 3
call fcn.00412480
add esp, 8
mov byte [esp + 0x498], 4
mov eax, dword [eax]
lea esi, [esp + 0x24]
call fcn.0049c410
mov esi, eax
mov byte [esp + 0x498], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x56d244
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x56d2cd
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x50]
push ecx
push ebp
call fcn.00579288
add esp, 8
test eax, eax
je 0x56d2a5
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0x58]
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push eax
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x56d2a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x480]
test eax, eax
je 0x56d2d4
cmp dword [esp + 0x484], 0
je 0x56d2d4
lea ecx, [esp + 0x24]
push ecx
push eax
call edi
test eax, eax
mov dword [esp + 0x484], eax
jne 0x56d258
mov eax, dword [esp + 0x480]
test eax, eax
mov dword [esp + 0x484], 0
je 0x56d2fa
cmp eax, 0xffffffff
je 0x56d2fa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x480], 0
mov byte [esp + 0x498], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x56d322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x498], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x56d349
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.005787fd
add esp, 0x488
ret