Function at 0x50a960
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573cab
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5d6b80]
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 - 4], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50a9b1
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 1
push eax
call fcn.0050c070
add esp, 4
test eax, eax
jne 0x50a9ea
push 1
push 0x57c808
lea ecx, [ebp - 0x274]
call fcn.0045b6e0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50aa06
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x26c], eax
mov ebx, dword [ebp - 0x274]
lea eax, [ebp - 0x26c]
push ebx
push 1
push str.ConfigV_d._s_
push eax
mov byte [ebp - 4], 2
call fcn.0045acb0
add esp, 0x10
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50aa53
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x278], eax
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x278]
push esi
push str._s.xml
push eax
mov byte [ebp - 4], 3
call fcn.0045acb0
add esp, 0xc
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50aa9e
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 8]
push eax
call fcn.0050b750
add esp, 8
test eax, eax
jne 0x50ab54
mov edx, dword [ebp - 0x288]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 3
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x50aaf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x278]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50ab16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50ab33
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50b089
mov ecx, dword [ebx]
push ebx
jmp 0x50b084
mov ebx, dword [ebp - 0x288]
lea eax, [ebx - 0x10]
push eax
mov dword [ebp - 0x29c], eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
push dword [eax - 0xc]
push eax
call fcn.00472540
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push edi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
je 0x50afe6
lea ecx, [ecx]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x270]
call fcn.0045a3a0
push dword [esi - 0xc]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.00493040
mov edx, dword [ebp - 0x270]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50ac2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x268]
cmp dword [esi - 0xc], 0
jle 0x50acf8
push 0x2e
push esi
call fcn.00526356
add esp, 8
test eax, eax
je 0x50acf8
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x50acf8
push eax
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x268]
call fcn.0045b030
push dword [eax]
call fcn.005275fc
mov dword [ebp - 0x280], eax
add esp, 4
mov eax, dword [ebp - 0x2a0]
or edx, 0xffffffff
add eax, 0xfffffff0
mov dword [ebp - 0x27c], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50aca9
mov ecx, dword [eax]
push dword [ebp - 0x27c]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x294]
mov ecx, eax
mov dword [ebp - 0x27c], ecx
cmp eax, dword [ebp - 0x290]
jb 0x50acdc
inc eax
lea ecx, [ebp - 0x298]
push eax
call fcn.004a4370
test al, al
je 0x50ad39
mov eax, dword [ebp - 0x294]
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x298]
lea ecx, [edx + ecx*4]
test ecx, ecx
je 0x50acf1
mov edx, dword [ebp - 0x280]
mov dword [ecx], edx
inc eax
mov dword [ebp - 0x294], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50ad16
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x284]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x50ad43
mov esi, dword [ebp - 0x26c]
jmp 0x50abe0
push 0x8007000e
call fcn.0045a8f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x294]
cmp esi, 2
jbe 0x50afcd
push 0x50d520
push 4
push esi
push dword [ebp - 0x298]
call fcn.00529280
lea ecx, [esi - 2]
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x268], eax
test ecx, ecx
jle 0x50ae42
mov esi, dword [ebp - 0x26c]
mov edi, edi
add edi, 0xfffffff0
lea ecx, [ebx - 0x10]
cmp ecx, edi
je 0x50adf2
cmp dword [edi + 0xc], 0
jl 0x50addd
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x50addd
push ecx
call fcn.0045a950
add esp, 4
mov dword [ebp - 0x284], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50add2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x284]
add eax, 0x10
mov dword [ebp - 0x264], eax
jmp 0x50adec
push dword [ebx - 0xc]
lea ecx, [ebp - 0x264]
push ebx
call fcn.0045b6e0
mov eax, dword [ebp - 0x268]
cmp eax, dword [ebp - 0x294]
jae 0x50ae85
mov ecx, dword [ebp - 0x298]
push dword [ecx + eax*4]
lea eax, [ebp - 0x264]
push esi
push str._s_d.xml
push eax
call fcn.0045ccb0
mov edi, dword [ebp - 0x264]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x268]
inc eax
mov dword [ebp - 0x268], eax
cmp eax, dword [ebp - 0x280]
jl 0x50ad90
add edi, 0xfffffff0
lea esi, [ebx - 0x10]
cmp esi, edi
je 0x50ae9e
cmp dword [edi + 0xc], 0
jl 0x50ae8f
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x50ae8f
push esi
call fcn.0045a950
add esp, 4
lea edx, [edi + 0xc]
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50ae7a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x264], eax
jmp 0x50ae9e
push 0x80070057
call fcn.0045a8f0
push dword [ebx - 0xc]
lea ecx, [ebp - 0x264]
push ebx
call fcn.0045b6e0
push 0x58e860
lea ecx, [ebp - 0x264]
call fcn.004b84c0
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x50afcd
lea ebx, [esi + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx], 0
mov ecx, eax
jl 0x50aef6
cmp ecx, dword [esi]
jne 0x50aef6
mov ebx, esi
lea ecx, [esi + 0xc]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x50af32
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x50b0c6
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0052628b
add esp, 0x10
lea eax, [ebx + 0x10]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xa
lea edx, [ecx + 2]
jmp 0x50af50
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50af50
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.00472540
mov esi, dword [ebp - 0x268]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xfffffff0
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50af9d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [ebp - 0x29c]
lea ebx, [esi + 0xc]
test eax, eax
jne 0x50aed4
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x50afe0
push eax
call fcn.0052616f
add esp, 4
mov esi, dword [ebp - 0x26c]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 4
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50b006
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x29c]
mov ecx, edi
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50b026
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x278]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50b049
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50b066
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x274]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50b089
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x50b0aa
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.00525878
mov esp, ebp
pop ebp
ret
call fcn.00494170
int3