Function at 0x50c260
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573f43
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
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 ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x290], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x28c], ecx
mov ecx, eax
mov dword [ebp - 0x27c], eax
call fcn.0045abd0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50c2cf
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
mov dword [ebp - 4], 0
push eax
call fcn.0050c070
add esp, 4
or esi, 0xffffffff
test eax, eax
jne 0x50c303
xor ebx, ebx
jmp 0x50c6f5
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50c31f
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x280], eax
push dword [ebp - 0x268]
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 1
push 1
push str.ConfigV_d._s_
push eax
call fcn.0045acb0
add esp, 0x10
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50c36b
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x274], eax
mov edi, dword [ebp - 0x280]
lea eax, [ebp - 0x274]
push edi
push str._s.xml
push eax
mov byte [ebp - 4], 2
call fcn.0045acb0
add esp, 0xc
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50c3b6
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 3
push eax
push ebx
call fcn.0050b750
mov ebx, dword [ebp - 0x274]
add esp, 8
test eax, eax
jne 0x50c3f1
xor eax, eax
mov dword [ebp - 0x264], eax
jmp 0x50c692
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x270], eax
push dword [ebx - 0xc]
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 4
push ebx
call fcn.00472540
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50c43b
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [ebp - 0x298], eax
add eax, 0x10
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a4], eax
cmp eax, 0xffffffff
je 0x50c647
mov dword [ebp - 0x264], 0xffffffff
or ebx, 0xffffffff
jmp 0x50c490
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x288]
call fcn.0045a3a0
push dword [edi - 0xc]
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.00493040
mov edx, dword [ebp - 0x288]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c4da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x284]
cmp dword [esi - 0xc], 0
jle 0x50c5c1
push 0x2e
push esi
call fcn.00526356
add esp, 8
test eax, eax
je 0x50c5c1
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x50c5c1
push eax
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x284]
call fcn.0045b030
push dword [eax]
call fcn.005275fc
mov dword [ebp - 0x278], eax
add esp, 4
mov eax, dword [ebp - 0x2a0]
mov edx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x29c], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50c557
mov ecx, dword [eax]
push dword [ebp - 0x29c]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x264]
cmp dword [ebp - 0x278], eax
jle 0x50c5c1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00480bb0
add esp, 0xc
mov ecx, dword [ebp - 0x27c]
push eax
mov byte [ebp - 4], 9
call fcn.0045a580
mov edx, dword [ebp - 0x294]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c5b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x264], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 5
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c5de
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2a4]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x50c490
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x27c]
mov ebx, dword [ebp - 0x274]
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x50c644
mov ecx, dword [ebp - 0x28c]
mov eax, dword [ebp - 0x264]
mov dword [ecx], eax
lea eax, [ebp - 0x268]
mov ecx, dword [ebp - 0x290]
push eax
call fcn.0045a580
mov dword [ebp - 0x264], 1
or esi, 0xffffffff
jmp 0x50c64f
or esi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x298]
mov ecx, esi
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c66f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x270]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c692
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x26c]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c6b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c6d2
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c6ef
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x264]
mov edi, dword [ebp - 0x268]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x50c719
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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