Function at 0x445930
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
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
call fcn.0040a600
mov esi, eax
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
cmp dword [eax + 0x20], 0
push edi
jbe 0x445987
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 dword [esp + 0x10], esi
jmp 0x445996
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x3c]
call ecx
mov dword [esp + 0x10], eax
mov eax, ebx
call fcn.00443760
mov edx, dword [ebx]
mov esi, eax
mov eax, dword [edx + 0xd0]
push 1
push 0
mov ecx, ebx
mov dword [esp + 0x24], esi
call eax
mov edx, dword [esi]
lea ecx, [esp + 0x20]
mov edi, eax
mov eax, dword [edx + 0x50]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x445b2e
jmp 0x4459e0
mov ecx, 0x522874
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x445a16
test dx, dx
je 0x445a12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x445a16
add eax, 4
add ecx, 4
test dx, dx
jne 0x4459f0
xor eax, eax
jmp 0x445a1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x445b0b
mov ecx, 0x527e74
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x445a56
test dx, dx
je 0x445a52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x445a56
add eax, 4
add ecx, 4
test dx, dx
jne 0x445a30
xor eax, eax
jmp 0x445a5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x445b0b
cmp byte [ebp + 0xc], 0
jne 0x445a74
test byte [esp + 0x20], 2
jne 0x445b0b
cmp byte [ebp + 8], 0
je 0x445ad7
mov ecx, dword [ebx + 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
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
mov ecx, edi
call edx
push eax
call fcn.0040b2c0
mov esi, dword [esp + 0x14]
add esi, 8
mov ebx, eax
mov eax, dword [esi + 0x20]
add esp, 4
cmp eax, dword [esi + 0x24]
jne 0x445acc
call fcn.004145f0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov dword [edx + ecx*4], ebx
jmp 0x445b03
lea eax, [esp + 0x4c]
push eax
call fcn.0040b2c0
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x28]
add esi, 8
add esp, 4
cmp ecx, dword [esi + 0x24]
mov ebx, eax
jne 0x445afa
call fcn.004145f0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov dword [eax + edx*4], ebx
mov ebx, dword [esp + 0x14]
add dword [esi + 0x20], 1
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4459e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [esi + 4]
call eax
test edi, edi
je 0x445b42
add edi, 4
jmp 0x445b44
xor edi, edi
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
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