Function at 0x508410
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x26c
push 0xffffffffffffffff
push 0x5a5cca
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp + 0x268], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 0x274]
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebx + 0x10]
lea eax, [esi + 0x107]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00539947
add esp, 4
mov dword [ebp - 0x14], vtable.Utils::ResourceHolders::resource_t_wchar_t___struct_Utils::ResourceHolders::arr_dtor_t_wchar_t___struct_Utils::ResourceHolders::puredrop_and_null_t_wchar_t___struct_Utils::ResourceHolders::arr_dtor_t_wchar_t___.0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x5bfee8
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0x5bfef0
mov dword [ebp - 4], 2
mov eax, ebx
cmp dword [ebx + 0x14], 8
mov edi, dword [ebp - 0x10]
jb 0x5084b1
mov eax, dword [ebx]
push eax
lea eax, [esi + 0x107]
push eax
push edi
call fcn.0055c6d7
mov eax, 0x5c
add esp, 0xc
mov word [edi + esi*2], ax
inc esi
xor eax, eax
lea ebx, [edi + esi*2]
mov word [ebx], ax
cmp byte [ebp + 0x278], al
je 0x50852c
push 0x5bfef4
lea eax, [ebp - 0x28]
push 0x106
push ebx
mov dword [ebp - 0x18], eax
call fcn.0055c6d7
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x24]
call fcn.00510e40
mov esi, eax
add esp, 0x18
test esi, esi
je 0x508576
mov eax, dword [esi + 0x24]
test eax, eax
je 0x50851f
push eax
call fcn.00539650
add esp, 4
mov dword [esi + 0x24], 0
push 0x6c
push esi
call fcn.00539070
add esp, 8
jmp 0x508576
mov ecx, dword [0x64efc8]
test ecx, ecx
jne 0x50856a
push 8
call fcn.00539040
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x50855d
mov ecx, eax
call fcn.00510850
mov byte [ebp - 4], 2
mov dword [0x64efc8], eax
jmp 0x50856f
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x64efc8], eax
jmp 0x50856f
call fcn.00510c10
mov dword [ebp - 0x18], 0
push str..
push dword [ebp - 0x2c]
lea eax, [ebp + 0x250]
push eax
call fcn.0044fe80
add esp, 0xc
mov byte [ebp - 4], 4
xor esi, esi
call fcn.0044b140
push 0
test al, al
mov ecx, 1
push 0
cmovne esi, ecx
lea eax, [ebp + 0x250]
cmp dword [ebp + 0x264], 8
lea ecx, [ebp]
push 0
cmovae eax, dword [ebp + 0x250]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x20], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::fnh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::fnh_dtor_t__.0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], 0x5bfe84
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1c], 0xffffffff
je 0x508639
mov esi, dword [ebp - 0x18]
lea ebx, [ebx]
test byte [ebp], 0x10
jne 0x508628
lea eax, [ebp + 0x2c]
push eax
push 0x106
push ebx
call fcn.0055c6d7
push 0
push edi
push dword [ebp - 0x24]
call fcn.00510e40
add esp, 0x18
test eax, eax
je 0x508628
mov ecx, dword [0x64efc8]
push esi
push eax
call fcn.00510aa0
test al, al
je 0x508639
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5085f0
mov ecx, dword [0x64efc8]
call fcn.00510e30
test eax, eax
setne bl
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::fnh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::fnh_dtor_t__.0
cmp eax, 0xffffffff
je 0x508663
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x250]
call fcn.0041ba60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], vtable.Utils::ResourceHolders::resource_t_wchar_t___struct_Utils::ResourceHolders::arr_dtor_t_wchar_t___struct_Utils::ResourceHolders::puredrop_and_null_t_wchar_t___struct_Utils::ResourceHolders::arr_dtor_t_wchar_t___.0
test ecx, ecx
je 0x508697
push ecx
call fcn.00539650
add esp, 4
mov al, bl
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x268]
xor ecx, ebp
call fcn.005395e6
lea esp, [ebp + 0x26c]
pop ebp
ret 8