Function at 0x50bb70
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573e88
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
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 + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x288], eax
call fcn.0045abd0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50bbd4
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 dword [ebp - 4], 0
push eax
push 0x23
call fcn.004e32f0
add esp, 8
or esi, 0xffffffff
test eax, eax
jns 0x50bc10
mov edi, dword [ebp - 0x26c]
xor ebx, ebx
jmp 0x50c032
push dword [0x5d64b8]
lea ecx, [ebp - 0x264]
call fcn.0045a3a0
push 1
push 0x57e140
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00472540
mov eax, dword [edi]
lea ecx, [ebp - 0x264]
push dword [eax - 0xc]
push eax
call fcn.00472540
push 1
push 0x57e140
lea ecx, [ebp - 0x264]
call fcn.00472540
mov edx, dword [str.Updater]
test edx, edx
jne 0x50bc68
xor ecx, ecx
jmp 0x50bc7f
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50bc70
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x264]
call fcn.00472540
push 1
push 0x57e140
lea ecx, [ebp - 0x264]
call fcn.00472540
mov edx, dword [str.Response]
test edx, edx
jne 0x50bcac
xor ecx, ecx
jmp 0x50bcc0
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50bcb1
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x264]
call fcn.00472540
push 1
push 0x57e140
lea ecx, [ebp - 0x264]
call fcn.00472540
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0050a690
mov edi, dword [ebp - 0x26c]
add esp, 8
test eax, eax
jns 0x50bd06
xor ebx, ebx
jmp 0x50c00f
lea eax, [edi - 0x10]
push eax
call fcn.0045a950
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x298], esi
mov byte [ebp - 4], 2
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50bd3b
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 3
push eax
call fcn.0050c070
add esp, 4
test eax, eax
jne 0x50bd72
push 0x57c808
lea ecx, [ebp - 0x270]
call fcn.0045a5f0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50bd8e
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x278], eax
push dword [ebp - 0x270]
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 4
push 1
push str.ResponseV_d._s
push eax
call fcn.0045acb0
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x28c], eax
call fcn.0045a950
add eax, 0x10
add esp, 0x14
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 5
push dword [eax - 0xc]
push eax
call fcn.00472540
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50be0b
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x268], esi
mov ebx, dword [ebp - 0x274]
lea eax, [ebp - 0x260]
push eax
push ebx
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
jne 0x50be4b
xor eax, eax
mov dword [ebp - 0x268], eax
jmp 0x50bf66
mov ebx, dword [ebp - 0x27c]
or edi, 0xffffffff
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
jmp 0x50be70
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x50bf2e
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00480bb0
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 7
call fcn.0045a580
mov edx, dword [ebp - 0x294]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50bedc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x268]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50bf2e
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x268]
push eax
call fcn.0045a580
mov ecx, dword [ebp - 0x288]
mov eax, dword [ebp - 0x25c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x258]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x50be70
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x26c]
mov ebx, dword [ebp - 0x274]
mov dword [ebp - 0x268], 1
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50bf86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 4
mov ecx, esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50bfa3
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x278]
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 0x50bfc6
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], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50bfe9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28c]
mov ecx, esi
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c009
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x268]
mov edx, dword [ebp - 0x264]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50c032
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x50c050
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