Function at 0x446150
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x54b708]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
jne 0x44618f
call fcn.0041dba0
test eax, eax
je 0x446188
lea ebx, [eax + 8]
jmp 0x44618a
xor ebx, ebx
call fcn.00408d40
mov dword [esp + 0x10], eax
mov eax, esi
call fcn.00443760
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0xd0]
push 1
push 0
mov ecx, esi
mov dword [esp + 0x20], ebx
call edx
mov edx, dword [ebx]
mov edi, eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [edx + 0x50]
mov ecx, ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x44632f
jmp 0x4461e0
mov ecx, 0x522874
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446216
test dx, dx
je 0x446212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446216
add eax, 4
add ecx, 4
test dx, dx
jne 0x4461f0
xor eax, eax
jmp 0x44621b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x446314
mov ecx, 0x527e74
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446256
test dx, dx
je 0x446252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446256
add eax, 4
add ecx, 4
test dx, dx
jne 0x446230
xor eax, eax
jmp 0x44625b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x446314
cmp byte [ebp + 8], 0
jne 0x446274
test byte [esp + 0x20], 2
jne 0x446314
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x64]
mov edx, dword [ecx]
mov esi, dword [edi]
mov eax, dword [edx + 0x2c]
add esi, 0x30
call eax
mov edx, dword [esi]
add eax, 1
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x1d0]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call edx
call fcn.0041dba0
mov esi, eax
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
cmp dword [eax + 0x20], 0
push ebx
jbe 0x4462d4
add dword [eax + 0x20], 0xffffffff
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, esi
jmp 0x4462e1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x3c]
call ecx
mov ebx, eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x18c]
push edi
mov ecx, ebx
call eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x20]
cmp ecx, dword [esi + 0x24]
jne 0x4462ff
call fcn.004145f0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov dword [eax + edx*4], ebx
add dword [esi + 0x20], 1
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4461e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 4]
lea ecx, [ebx + 4]
call eax
test edi, edi
je 0x446343
lea ecx, [edi + 4]
jmp 0x446345
xor ecx, ecx
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x274]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b8e16
mov esp, ebp
pop ebp
ret 8