Function at 0x424980
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esi + 0x20464]
mov edx, dword [esi + 0x20468]
mov eax, dword [esi + 0x2046c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esi + 0x20478], ebx
test edx, edx
jne 0x4249e9
cmp dword [esi + 0x20470], 2
jne 0x4249e9
mov eax, dword [esi + 0x2045c]
cmp word [eax + 2], 0x3a
jne 0x4249e9
mov dword [esi + 0x10250], 0x2e
mov byte [ebp + 0x1c], dl
mov edx, 1
mov dword [esi + 0x20468], 1
mov eax, 0x8000
lea ecx, [esi + 0x250]
sub eax, ebx
lea ecx, [ecx + ebx*2]
mov dword [esp + 0x28], eax
cmp edx, eax
jae 0x424d6a
lea eax, [edx*2 + 2]
push eax
lea eax, [esi + 0x10250]
push eax
push ecx
call fcn.00497340
add esp, 0xc
lea eax, [esi + 0x250]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
setne bl
je 0x424a5c
nop dword [eax + eax]
mov edx, dword [ebp + 0x18]
mov ecx, esi
call fcn.0043f910
test al, al
je 0x424a5c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x424a40
mov eax, dword [0x4d78c8]
mov edx, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov dword [eax + 8], esi
test ebx, ebx
je 0x424bc9
mov ebx, dword [esp + 0x14]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 3
jne 0x424ab5
mov esi, eax
jmp 0x424a93
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x18]
push eax
push edx
push 2
call fcn.00422d30
mov ecx, dword [esi + 0x14]
mov edi, eax
mov edx, dword [esp + 0x18]
cmp edx, ecx
je 0x424a90
mov esi, dword [ebp + 0x20]
jmp 0x424ac8
lea eax, [esp + 0x18]
push eax
push edx
push 3
call fcn.00422d30
mov edx, dword [esp + 0x18]
mov edi, eax
test edx, edx
je 0x424af2
cmp edi, 6
jne 0x424ba3
cmp edx, dword [esp + 0x10]
je 0x424afc
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp edi, 1
je 0x424afc
cmp edi, 6
jne 0x424ae0
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x424b70
mov eax, dword [0x4d78c8]
mov dword [0x4dd3ac], edi
cmp byte [eax + 0x9a], 0
je 0x424b48
mov eax, dword [0x4dc01c]
mov dword [eax*4 + 0x4dc660], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4dc01c]
mov dword [ecx*4 + 0x4dc020], eax
inc ecx
xor eax, eax
cmp ecx, 0x190
cmovge ecx, eax
mov dword [0x4dc01c], ecx
push 0
mov ecx, edi
call fcn.0045b890
mov edi, eax
cmp edi, 1
jne 0x424ae0
mov ecx, dword [0x4dcca0]
lea edi, [eax + 4]
call fcn.0044f2e0
test eax, eax
jne 0x424ae0
nop
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
je 0x424b8c
mov edx, dword [ebp + 0x18]
mov ecx, esi
call fcn.0043f910
test al, al
jne 0x424b70
mov eax, dword [esp + 0x24]
add dword [eax], 1
adc dword [eax + 4], 0
test edi, edi
je 0x424bc5
mov edx, dword [ebp + 8]
jmp 0x424a80
cmp edx, dword [esp + 0x10]
jne 0x424adb
mov eax, dword [ebp + 0xc]
push ebx
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [esp + 0x14]
cmp edi, 0xffffffff
je 0x424bd5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x1c], 0
je 0x424d6a
mov ecx, dword [esp + 0x1c]
lea eax, [esi + ecx*2]
mov dword [eax + 0x250], 0x2a
lea eax, [esi + 0x250]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x424d6a
mov eax, 0x8000
sub eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
nop word [eax + eax]
test byte [esi], 0x10
je 0x424d4f
cmp word [esi + 0x2c], 0x2e
lea ecx, [esi + 0x2c]
jne 0x424c50
movzx eax, word [esi + 0x2e]
test ax, ax
je 0x424d4f
cmp eax, 0x2e
jne 0x424c50
cmp word [esi + 0x30], 0
je 0x424d4f
mov ebx, ecx
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x424c55
sub ebx, edx
sar ebx, 1
lea eax, [ebx + 1]
cmp eax, dword [esp + 0x28]
jae 0x424d4f
lea edi, [ebx + ebx]
push edi
push ecx
mov ecx, dword [esp + 0x24]
add ecx, 0x128
lea eax, [esi + ecx*2]
push eax
call fcn.00497340
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + ecx*2]
mov dword [edi + eax + 0x250], 0x5c
lea eax, [ecx + 1]
add eax, ebx
lea ecx, [esi + 0x234]
mov dword [esi + 0x20464], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424cb2
sub ecx, edx
sar ecx, 1
mov edx, ecx
cmove edx, ebx
mov dword [esp + 0x2c], edx
lea eax, [edx + 1]
cmp eax, dword [esp + 0x24]
jae 0x424d4b
test ecx, ecx
lea edi, [edx + edx]
mov ecx, 0x234
mov eax, 0x2c
cmovne eax, ecx
add eax, esi
push edi
push eax
mov eax, dword [esp + 0x28]
add eax, 0x822c
lea ebx, [esi + eax*2]
push ebx
call fcn.00497340
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x2c]
inc ecx
mov dword [edi + ebx], 0x5c
add eax, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
push esi
push dword [ebp + 0x1c]
mov dword [esi + 0x2046c], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424980
mov edi, eax
cmp edi, 1
jne 0x424d78
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x424d5f
cmp dword [ebx], 0
jne 0x424d5f
mov edi, dword [esp + 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424c20
push dword [esp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push dword [esp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c