Function at 0x424680
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b415
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov eax, dword [0x4a5c70]
push ebx
mov dword [esp + 0x278], eax
push ebp
xor eax, eax
push esi
mov ebp, ecx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x294]
push ebx
mov dword [esp + 0x290], eax
lea eax, [esp + 0x18]
push str._s
push eax
call fcn.0044b320
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0040e380
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
call fcn.0040e340
cmp esi, 0xffffffff
jne 0x424737
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindFirstFile
lea ecx, [esp + 0x184]
call fcn.0044ba90
lea eax, [esp + 0x17c]
push eax
push 0x48446c
push 0x4a73b0
call fcn.00402c00
add esp, 0xc
jmp 0x424938
push edi
jmp 0x424741
mov ebx, dword [esp + 0x298]
mov edi, 0x487f18
lea esi, [esp + 0x6c]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4248bf
mov edi, 0x487f14
lea esi, [esp + 0x6c]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4248bf
lea edi, [ebp + 0x50]
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebp + 0x40]
test al, al
jne 0x4248b0
mov ecx, dword [esp + 0x2a0]
cmp ecx, dword [ebp + 0x88]
jne 0x4248b0
lea edx, [esp + 0x6c]
mov dword [esp + 0x38], edx
mov byte [esp + 0x3c], 0
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
cmp byte [ebx], 0
mov byte [esp + 0x290], 4
mov eax, 0x485da4
jne 0x4247cb
mov eax, 0x4825cd
lea ecx, [esp + 0x6c]
push ecx
push eax
push ebx
lea edx, [esp + 0x20]
push 0x487f0c
push edx
call fcn.0044b320
mov ecx, dword [esp + 0x2b0]
mov al, byte [ecx]
add esp, 0x14
test al, al
mov eax, 0x485da4
jne 0x4247fb
mov eax, 0x4825cd
lea edx, [esp + 0x6c]
push edx
push eax
push ecx
lea eax, [esp + 0x1c]
push 0x487f0c
push eax
call fcn.0044b320
call fcn.00421df0
push 0x38
mov esi, eax
call fcn.00459787
add esp, 0x18
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x290], 5
je 0x424852
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ecx + 4]
lea ebx, [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
push edx
push ecx
mov ecx, eax
call fcn.00429e20
jmp 0x424854
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0x294], 4
call fcn.00422040
test byte [esp + 0x40], 0x10
je 0x424899
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00420e30
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call fcn.00420e30
mov dword [esp + 0x28], eax
add esp, 8
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + 0x44]
mov dword [esp + 0x28], esi
call fcn.004245a0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00459039
mov edx, dword [esp + 0x18]
push edx
call fcn.00459039
add esp, 8
push edi
mov byte [esp + 0x294], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x2c]
call fcn.0040e380
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x2c]
inc bl
call fcn.0040e340
test bl, bl
je 0x42473a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
pop edi
je 0x42492d
call esi
push eax
push str.FindNextFile
lea ecx, [esp + 0x184]
call fcn.0044ba90
lea edx, [esp + 0x17c]
push edx
push 0x48446c
push 0x4a73b0
call fcn.00402c00
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00459039
mov ecx, dword [esp + 0x288]
add esp, 4
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x278]
pop ebx
call fcn.0045b645
add esp, 0x284
ret 0xc