Function at 0x50c870
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x754cda
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x88]
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x10]
movq qword [esp + 0x88], xmm0
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call fcn.004c10e0
mov dword [esp + 0x88], eax
push dword [esp + 0x24]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x114], 0
call fcn.00503e70
lea eax, [esp + 0xe4]
mov byte [esp + 0x110], 1
push eax
mov ecx, edi
mov dword [edi + 4], 0
call fcn.0050cff0
test al, al
je 0x50cdba
push 0x140
call fcn.006f7558
mov edi, eax
add esp, 4
mov dword [esp + 0x3c], edi
push dword [esp + 0x24]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x114], 2
call fcn.00503e70
lea eax, [esp + 0xe4]
mov byte [esp + 0x110], 3
push eax
lea ecx, [esp + 0xcc]
call fcn.00504050
cmp dword [esp + 0xe0], 0x10
lea eax, [esp + 0xcc]
push edi
cmovae eax, dword [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x28], ecx
setne cl
test cl, cl
jne 0x50cb10
test byte [ebp + 0x14], 2
je 0x50cd68
push 2
push 0
push 0x78b57c
lea ecx, [esp + 0xd8]
call fcn.005068d0
cmp eax, 0xffffffff
jne 0x50cd68
push 1
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xd0]
call fcn.00504a30
mov byte [esp + 0x110], 4
test eax, eax
je 0x50ca07
add eax, 4
jmp 0x50ca09
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xbc]
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
call fcn.00404c20
mov dword [esp + 0xac], vtable.wbs::StringBase_char_.0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x110], 6
call fcn.0061b700
mov esi, dword [esp + 0x88]
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x90]
call fcn.004c1250
cmp dword [eax], esi
jne 0x50cad3
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x44]
call fcn.00503e70
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x114], 7
call fcn.0050d960
lea ecx, [esp + 0x40]
mov byte [esp + 0x110], 6
call fcn.0061b700
movzx eax, byte [0x852e40]
lea ecx, [esp + 0x88]
push eax
lea eax, [esp + 0xb0]
push eax
push 0
lea eax, [esp + 0x70]
push eax
call fcn.004bba80
cmp dword [esp + 0xc4], 0x10
mov byte [esp + 0x110], 3
mov dword [esp + 0xac], vtable.wbs::StringBase_char_.0
jb 0x50cd68
push dword [esp + 0xb0]
call fcn.006f75a9
add esp, 4
jmp 0x50cd68
mov eax, dword [edi]
test al, 0x10
jne 0x50cd50
mov ecx, dword [ebx]
test cl, 0x40
jne 0x50cb29
test al, 2
je 0x50cb29
xor al, al
jmp 0x50cb37
test cl, cl
js 0x50cb35
test al, 4
je 0x50cb35
xor al, al
jmp 0x50cb37
mov al, 1
test al, al
je 0x50cd50
lea eax, [edi + 0x2c]
mov dword [esp + 0xa8], 0xf
test eax, eax
mov dword [esp + 0xa4], 0
mov edx, 0x77e880
mov byte [esp + 0x94], 0
cmovne edx, eax
cmp byte [edx], 0
jne 0x50cb73
xor eax, eax
jmp 0x50cb81
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50cb78
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x9c]
call fcn.00409620
mov dword [esp + 0x90], vtable.wbs::StringBase_char_.0
mov esi, dword [esp + 0x88]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x114], 8
call fcn.005333c0
cmp eax, dword [esp + 0x88]
je 0x50ccb2
lea edx, [eax + 0x10]
test edx, edx
je 0x50cbd6
add edx, 4
jmp 0x50cbd8
xor edx, edx
cmp dword [edx + 0x14], 0x10
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x20], ebx
jb 0x50cbe7
mov edx, dword [edx]
cmp dword [esp + 0xa8], 0x10
lea ecx, [esp + 0x94]
cmovae ecx, dword [esp + 0x94]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xa4]
cmp ecx, dword [esp + 0x20]
cmovb ebx, ecx
mov ecx, dword [esp + 0x14]
test ebx, ebx
je 0x50cc84
sub ebx, 4
jb 0x50cc39
lea ecx, [ecx]
mov ecx, dword [ecx]
cmp ecx, dword [edx]
mov ecx, dword [esp + 0x14]
jne 0x50cc3e
add ecx, 4
add edx, 4
mov dword [esp + 0x14], ecx
sub ebx, 4
jae 0x50cc20
cmp ebx, 0xfffffffc
je 0x50cc7e
mov cl, byte [ecx]
cmp cl, byte [edx]
jne 0x50cc77
cmp ebx, 0xfffffffd
je 0x50cc7e
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + 1]
cmp cl, byte [edx + 1]
jne 0x50cc77
cmp ebx, 0xfffffffe
je 0x50cc7e
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + 2]
cmp cl, byte [edx + 2]
jne 0x50cc77
cmp ebx, 0xffffffff
je 0x50cc7e
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + 3]
cmp cl, byte [edx + 3]
je 0x50cc7e
sbb ecx, ecx
or ecx, 1
jmp 0x50cc80
xor ecx, ecx
test ecx, ecx
jne 0x50cca1
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xa4]
cmp ebx, edx
jae 0x50cc98
or ecx, 0xffffffff
jmp 0x50cc9f
xor ecx, ecx
cmp ebx, edx
setne cl
test ecx, ecx
sets cl
test cl, cl
jne 0x50ccb2
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
jmp 0x50ccc1
mov eax, dword [esp + 0x88]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
cmp dword [eax], esi
jne 0x50cd20
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x44]
call fcn.00503e70
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x114], 9
call fcn.0050d960
lea ecx, [esp + 0x40]
mov byte [esp + 0x110], 8
call fcn.0061b700
movzx eax, byte [0x852e40]
lea ecx, [esp + 0x88]
push eax
lea eax, [esp + 0x94]
push eax
push 0
lea eax, [esp + 0x68]
push eax
call fcn.004bba80
cmp dword [esp + 0xa8], 0x10
mov byte [esp + 0x110], 3
mov dword [esp + 0x90], vtable.wbs::StringBase_char_.0
jb 0x50cd4c
push dword [esp + 0x94]
call fcn.006f75a9
add esp, 4
mov ebx, dword [esp + 0x18]
push edi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
setne al
test al, al
jne 0x50cb10
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xe4]
push eax
call fcn.0050cff0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x110], 2
mov bl, al
call fcn.0061b700
push edi
mov byte [esp + 0x114], 1
call fcn.006f75a9
add esp, 4
test bl, bl
mov ebx, dword [esp + 0x18]
jne 0x50c941
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
mov eax, 0x92492493
sub ecx, dword [esi]
imul ecx
mov byte [esp + 0x110], 0
add edx, ecx
lea ecx, [esp + 0xe4]
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
call fcn.0061b700
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0x38]
push ecx
mov dword [esp + 0x114], 0xffffffff
push dword [ecx]
lea ecx, [esp + 0x90]
push eax
call fcn.0043c970
push dword [esp + 0x88]
call fcn.006f75a9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.006f7ca4
mov esp, ebp
pop ebp
ret 0x10