Function at 0x4f4cc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d82d5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x634254]
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 edi, ecx
mov dword [ebp - 0x4d0], 0
push 0x28
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4f557e
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 4], 0
mov eax, 0x5c
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [0x614a38]
mov ecx, 7
movq xmm0, qword [0x614a30]
mov esi, 6
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
movq qword [ebp - 0x40], xmm0
mov word [ebp - 0x34], ax
add edi, 4
mov byte [ebp - 4], 3
xor ebx, ebx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 0x4d0], 1
test edx, edx
jne 0x4f4dc6
mov dword [ebp - 0x18], esi
lea ebx, [ebp - 0x40]
add esi, esi
lea eax, [ebp - 0x28]
push esi
push ebx
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x4f5296
cmp dword [ebp - 0x30], eax
je 0x4f5296
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4f4e15
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x4a8], edi
jb 0x4f4dec
mov eax, dword [edi]
mov dword [ebp - 0x4a8], eax
mov ebx, edx
cmp ebx, 7
ja 0x4f4f11
lea esi, [ebx + ebx]
mov dword [ebp - 0x18], ebx
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
mov ebx, dword [ebp - 0x18]
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4f4e20
mov edi, dword [edi]
movzx eax, word [edi + eax*2 - 2]
mov esi, 0x2f
mov edx, SysReAllocString
lea edi, [esi + 0x2d]
cmp si, ax
je 0x4f4e69
cmp di, ax
je 0x4f4e69
mov esi, dword [ebp - 0x14]
mov eax, esi
sub eax, ebx
cmp eax, 1
jb 0x4f4fd2
cmp esi, 8
lea eax, [ebp - 0x28]
lea ecx, [ebx + 1]
cmovae eax, dword [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x18], ecx
mov word [eax + ebx*2], di
mov word [eax + ecx*2], si
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x40]
mov ecx, 0x2f
cmovae eax, esi
mov dword [ebp - 0x4a8], 0
movzx eax, word [eax]
cmp cx, ax
je 0x4f4e92
cmp di, ax
jne 0x4f4e9c
mov dword [ebp - 0x4a8], 1
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmovae ecx, esi
lea esi, [ecx + eax*2]
mov ecx, dword [ebp - 0x4a8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0x4ac], eax
mov eax, ecx
sar esi, 1
sub eax, ebx
mov dword [ebp - 0x4b4], esi
cmp esi, eax
ja 0x4f5128
mov eax, dword [ebp - 0x4b4]
lea edi, [esi + ebx]
cmp ecx, 8
mov dword [ebp - 0x18], edi
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, eax
push eax
push dword [ebp - 0x4ac]
lea ecx, [esi + ebx*2]
push ecx
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4f5296
cmp ebx, 0x7ffffffe
ja 0x4f558f
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4f4f36
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f4f57
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4f55b6
add eax, eax
cmp eax, 0x1000
jb 0x4f4f80
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4f55b6
push ecx
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f5594
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4f4f9f
test eax, eax
je 0x4f4f9d
push eax
call fcn.005a1c68
add esp, 4
mov dword [ebp - 0x4ac], eax
test eax, eax
je 0x4f55a5
jmp 0x4f4fa5
xor eax, eax
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x14], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x4a8]
mov dword [ebp - 0x18], ebx
push eax
call fcn.00570780
mov eax, dword [ebp - 0x4ac]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov word [eax + esi], cx
jmp 0x4f4e15
mov eax, edx
sub eax, ebx
cmp eax, 1
jb 0x4f55bb
mov esi, dword [ebp - 0x14]
lea eax, [ebx + 1]
mov edi, eax
mov dword [ebp - 0x4a8], eax
or edi, 7
mov dword [ebp - 0x4b4], esi
cmp edi, edx
jbe 0x4f5003
mov edi, edx
mov eax, 0xfffffffe
jmp 0x4f5037
mov ecx, esi
mov eax, edx
shr ecx, 1
sub eax, ecx
cmp esi, eax
jbe 0x4f5018
mov edi, edx
mov eax, 0xfffffffe
jmp 0x4f5037
lea eax, [esi + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4f55b6
add eax, eax
cmp eax, 0x1000
jb 0x4f505e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4f55b6
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4f55c0
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4f5079
test eax, eax
je 0x4f5077
push eax
call fcn.005a1c68
mov esi, eax
add esp, 4
test esi, esi
je 0x4f55d1
jmp 0x4f5079
xor esi, esi
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
lea eax, [ebx + ebx]
mov ebx, dword [ebp - 0x4b4]
lea edi, [esi + eax]
mov dword [ebp - 0x4ac], edi
push eax
cmp ebx, 8
jb 0x4f5105
mov edi, dword [ebp - 0x28]
push edi
push esi
call fcn.00570780
mov eax, dword [ebp - 0x4ac]
mov ecx, 0x5c
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov eax, dword [ebp - 0x4a8]
mov word [esi + eax*2], cx
lea ecx, [ebx*2 + 2]
cmp ecx, 0x1000
jb 0x4f50e6
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4f5609
mov edi, edx
push ecx
push edi
call fcn.0056d0c8
add esp, 8
mov ebx, dword [ebp - 0x18]
mov edx, SysReAllocString
mov dword [ebp - 0x28], esi
mov edi, 0x5c
jmp 0x4f4e69
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00570780
mov eax, dword [ebp - 0x4a8]
mov ecx, 0x5c
mov word [edi], cx
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4f50f0
mov eax, edx
sub eax, ebx
cmp eax, esi
jb 0x4f55e2
mov eax, dword [ebp - 0x14]
lea ecx, [esi + ebx]
mov edi, ecx
mov dword [ebp - 0x4a8], ecx
or edi, 7
mov dword [ebp - 0x4cc], eax
cmp edi, 0x7ffffffe
jbe 0x4f515f
mov edi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f5193
mov ecx, eax
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x4f5175
mov edi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f5193
add eax, ecx
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4f55b6
add eax, eax
cmp eax, 0x1000
jb 0x4f51ba
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4f55b6
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4f55e7
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4f51d5
test eax, eax
je 0x4f51d3
push eax
call fcn.005a1c68
mov esi, eax
add esp, 4
test esi, esi
je 0x4f55f8
jmp 0x4f51d5
xor esi, esi
mov eax, dword [ebp - 0x4a8]
lea ecx, [ebx + ebx]
mov ebx, dword [ebp - 0x4cc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x14], edi
add eax, eax
mov dword [ebp - 0x4b4], eax
lea edi, [esi + ecx]
mov dword [ebp - 0x4c8], edi
push ecx
cmp ebx, 8
jb 0x4f5268
mov edi, dword [ebp - 0x28]
push edi
push esi
call fcn.00570780
push dword [ebp - 0x4b4]
push dword [ebp - 0x4ac]
push dword [ebp - 0x4c8]
call fcn.00570780
mov eax, dword [ebp - 0x4a8]
xor ecx, ecx
add esp, 0x18
mov word [esi + eax*2], cx
lea ecx, [ebx*2 + 2]
cmp ecx, 0x1000
jb 0x4f525c
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4f5609
mov edi, edx
push ecx
push edi
call fcn.0056d0c8
add esp, 8
jmp 0x4f5293
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00570780
push dword [ebp - 0x4b4]
push dword [ebp - 0x4ac]
push edi
call fcn.00570780
mov eax, dword [ebp - 0x4a8]
add esp, 0x18
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x4a4]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004cf680
mov byte [ebp - 4], 2
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4f52ed
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f52e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f5609
push edx
push ecx
call fcn.0056d0c8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4f533f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f5335
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f5609
push edx
push ecx
call fcn.0056d0c8
add esp, 8
test esi, esi
je 0x4f54a0
mov ecx, dword [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test ecx, ecx
je 0x4f5392
mov eax, dword [ebp - 0x4a4]
shr eax, 4
and eax, 1
je 0x4f5394
cmp word [ebp - 0x478], 0x2e
jne 0x4f5394
mov dx, word [ebp - 0x476]
test dx, dx
je 0x4f547e
cmp dx, 0x2e
jne 0x4f5394
cmp word [ebp - 0x474], 0
je 0x4f547e
jmp 0x4f5394
xor eax, eax
test eax, eax
jne 0x4f547e
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.004f4120
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f53d4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00407684
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x4d4]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.004f7360
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4f5445
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f543b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f5609
push edx
push ecx
call fcn.0056d0c8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c8]
mov word [ebp - 0x40], ax
add edx, 0xfffffff0
mov dword [ebp - 0x30], 0
or eax, 0xffffffff
mov dword [ebp - 0x2c], 7
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f547b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x4f54a3
test ecx, ecx
je 0x4f54a3
lea eax, [ebp - 0x4a4]
push eax
push edx
call edi
mov ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x4f5354
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x4bc]
xor edi, edi
mov eax, dword [ebp - 0x4b8]
add eax, 0xfffffffb
mov esi, dword [esi]
test eax, eax
jle 0x4f551d
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4f54cb
mov eax, dword [eax]
push eax
call ebx
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4f54f4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4f54f0
cmp esi, dword [eax + 8]
jne 0x4f54f0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4f54e0
mov esi, eax
jmp 0x4f550c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4f550c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4f5500
mov eax, dword [ebp - 0x4b8]
inc edi
add eax, 0xfffffffb
cmp edi, eax
jl 0x4f54c0
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x44], 0
test edx, edx
je 0x4f553b
cmp edx, 0xffffffff
je 0x4f553b
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x4bc]
push dword [eax + 4]
lea eax, [ebp - 0x4bc]
push eax
mov ecx, eax
call fcn.004f7970
push 0x28
push dword [ebp - 0x4bc]
call fcn.0056d0c8
add esp, 8
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.0056d855
mov esp, ebp
pop ebp
ret
push 0x630328
lea eax, [ebp - 0x4ad]
push eax
call fcn.0057134b
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x4be]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x4bf]
push eax
call fcn.0057134b
call fcn.00407541
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x4c0]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x4c1]
push eax
call fcn.0057134b
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x4c2]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x4c3]
push eax
call fcn.0057134b
call fcn.0057b201
int3