Function at 0x440590
Capabilities:
Check for time delay via gettickcount
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x384
cmp byte [esp + 0x39c], 0
mov eax, dword [esp + 0x388]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [0x4a7978]
mov dword [esp + 0x1c], ebp
jne 0x44062f
cmp byte [eax], 0
jne 0x440613
mov eax, edi
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x4405f3
mov eax, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push eax
call fcn.00475300
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x384
ret 0x18
push 0x499861
push 0
push 0x49afb0
call fcn.0042d440
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x384
ret 0x18
cmp dword [esp + 0x39c], 0
jne 0x440628
mov dword [esp + 0x39c], 1
mov dword [edi + 0x30], 0
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x440634
sub ecx, esi
cmp ecx, 0x104
jb 0x44069d
test byte [edi + 0xe0], 1
mov dword [edi + 0x30], 0x6f
jne 0x44067b
mov ecx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push ecx
call fcn.00475300
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x384
ret 0x18
push 0x499861
push 0
push 0x49afb0
mov ecx, ebp
call fcn.0042d440
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x384
ret 0x18
lea esi, [esp + 0x288]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4406a8
lea edx, [esp + 0x180]
sub edx, eax
jmp 0x4406c0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4406c0
lea edx, [esp + 0x180]
push 0x5c
push edx
call fcn.004877de
add esp, 8
test eax, eax
je 0x4406fb
mov byte [eax + 1], 0
lea eax, [esp + 0x180]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4406f0
sub eax, edx
jmp 0x440705
mov byte [esp + 0x180], 0
xor eax, eax
mov ebx, 0x103
lea edx, [esp + 0x288]
lea ecx, [esp + eax + 0x180]
sub ebx, eax
push 0x5c
push edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
call fcn.004877de
add esp, 8
test eax, eax
je 0x440734
inc eax
jmp 0x44073b
lea eax, [esp + 0x288]
mov edi, 0x49f004
mov dword [esp + 0x14], eax
call fcn.00409200
test eax, eax
jne 0x440758
mov dword [esp + 0x39c], 3
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28c]
push ecx
xor ebp, ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x440881
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad954]
mov edx, dword [0x4a7978]
cmp eax, dword [edx + 0xb8]
jbe 0x4407c8
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4407bd
push 1
push 0xffffffffffffffff
call fcn.004013c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ad954], eax
test byte [esp + 0x40], 0x10
je 0x4407f9
cmp byte [esp + 0x6c], 0x2e
jne 0x4407ed
mov al, byte [esp + 0x6d]
test al, al
je 0x440866
cmp al, 0x2e
jne 0x4407ed
cmp byte [esp + 0x6e], 0
je 0x440866
cmp dword [esp + 0x39c], 1
jne 0x440803
jmp 0x440866
cmp dword [esp + 0x39c], 2
je 0x440866
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440810
sub eax, edx
cmp eax, ebx
jbe 0x44082c
mov ecx, dword [0x4a7978]
mov dword [ecx + 0x30], 0x6f
jmp 0x440865
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x6c]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x440838
mov edx, dword [esp + 0x3a8]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x188]
push ecx
call dword [esp + 0x3b0]
add esp, 0xc
test eax, eax
jne 0x440866
inc ebp
lea edx, [esp + 0x40]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x440780
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x3a0]
test bl, bl
je 0x4409b7
cmp dword [esp + 0x20], 2
jbe 0x4409b7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x184]
push edx
mov dword [eax], 0x2a2e2a
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x4409b7
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4408c6
sub eax, edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad954]
mov ecx, dword [0x4a7978]
cmp eax, dword [ecx + 0xb8]
jbe 0x440919
push 0
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x44090e
push 1
push 0xffffffffffffffff
call fcn.004013c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ad954], eax
test byte [esp + 0x40], 0x10
je 0x44099c
cmp byte [esp + 0x6c], 0x2e
jne 0x44093a
mov al, byte [esp + 0x6d]
test al, al
je 0x44099c
cmp al, 0x2e
jne 0x44093a
cmp byte [esp + 0x6e], 0
je 0x44099c
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440941
sub eax, edx
add eax, esi
cmp eax, dword [esp + 0x20]
jae 0x44099c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
push ecx
push 0x49bfb0
push edx
call fcn.00485988
mov eax, dword [esp + 0x3b8]
mov ecx, dword [esp + 0x3b4]
mov edx, dword [esp + 0x3ac]
add esp, 0x10
push 1
push eax
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push edx
lea eax, [esp + 0x194]
push eax
call fcn.00440590
add ebp, eax
lea ecx, [esp + 0x40]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4408d1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x3ac], 0
jne 0x4409cc
mov edx, dword [esp + 0x1c]
push ebp
push edx
call fcn.0042d5a0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x384
ret 0x18