Function at 0x477748
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d528
mov eax, dword fs:[0]
push eax
mov eax, 0x1984
call fcn.004f0e50
mov eax, dword [0xaba010]
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 dword [ebp - 0x1968], ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1960], edi
mov eax, dword [edi + 8]
sub eax, dword [edi]
sar eax, 5
cmp eax, 0x1e
jae 0x4777a1
push ecx
mov ecx, edi
call fcn.00479cae
test esi, esi
je 0x4779f1
cmp byte [esi], 0
je 0x4779f1
push ecx
mov ecx, esp
push esi
call fcn.004094e6
lea ecx, [ebp - 0x195c]
call fcn.00422828
xor esi, esi
lea eax, [ebp - 0x1950]
mov dword [ebp - 4], esi
mov dword [esp], 0x140
push esi
push eax
mov dword [ebp - 0x1954], esi
call fcn.004f1a90
push 0x55ac18
lea edx, [ebp - 0x195c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1964]
call fcn.00405cb9
add esp, 0x10
lea ecx, [ebp - 0x1954]
push dword [eax]
call fcn.0047701f
mov edx, dword [ebp - 0x1964]
neg eax
sbb al, al
or ebx, 0xffffffff
inc al
add edx, 0xfffffff0
mov dword [ebp - 0x1958], eax
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x477841
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1958]
test al, al
jne 0x4779b8
mov eax, dword [ebp - 0x1954]
test eax, eax
je 0x477864
cmp eax, ebx
je 0x477864
test byte [ebp - 0x1950], 0x10
jne 0x477985
lea eax, [ebp - 0x1924]
push eax
lea edx, [ebp - 0x195c]
lea ecx, [ebp - 0x1958]
call fcn.00405cb9
mov byte [ebp - 4], 2
lea eax, [ebp - 0x810]
mov dword [esp], 0x800
push esi
push eax
mov dword [ebp - 0x1970], esi
mov dword [ebp - 0x196c], esi
call fcn.004f1a90
push 0x1000
lea eax, [ebp - 0x1810]
push esi
push eax
call fcn.004f1a90
mov ecx, dword [ebp - 0x1968]
lea eax, [ebp - 0x1970]
add esp, 0x18
push eax
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x1958]
call fcn.004bdd4a
test eax, eax
je 0x47795e
lea ecx, [ebp - 0x810]
call fcn.00423518
test eax, eax
je 0x477952
lea ecx, [ebp - 0x1990]
call fcn.004770c6
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004799be
lea ecx, [ebp - 0x1990]
mov byte [ebp - 4], 2
call fcn.0045a9f7
mov esi, dword [ebp - 0x1960]
lea eax, [ebp - 0x1970]
mov edi, dword [ebp - 0x1958]
push eax
lea eax, [ebp - 0x1810]
mov esi, dword [esi + 4]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push eax
push edi
lea ecx, [esi - 0x20]
call fcn.004771bf
mov edi, dword [ebp - 0x1960]
xor esi, esi
jmp 0x47795e
push dword [ebp - 0x1958]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x1958]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47797f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1954]
test eax, eax
je 0x4779d3
cmp eax, ebx
je 0x4779be
lea ecx, [ebp - 0x1950]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4779b8
mov eax, dword [0xd58f54]
test eax, eax
je 0x477849
cmp dword [eax + 0x1054], esi
je 0x477849
mov eax, dword [ebp - 0x1954]
test eax, eax
je 0x4779d3
cmp eax, ebx
je 0x4779d3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x1954], esi
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x195c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4779f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004efcea
mov esp, ebp
pop ebp
ret 0xc