Function at 0x440320
Capabilities:
Check for time delay via gettickcount
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3dc
cmp byte [ebp + 0x18], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [0x4a3440]
mov dword [esp + 0x24], ebx
jne 0x4403ac
cmp byte [esi], 0
jne 0x440398
mov eax, edi
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x44037c
mov eax, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push eax
call fcn.004716d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4957f9
push 0
push 0x496ed0
call fcn.0042cdb0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x10], 0
jne 0x4403a5
mov dword [ebp + 0x10], 1
mov dword [edi + 0x30], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4403b1
sub eax, edx
cmp eax, 0x104
jb 0x440410
mov dword [edi + 0x30], 0x6f
cmp byte [edi + 0xe4], cl
jne 0x4403f2
mov ecx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push ecx
call fcn.004716d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4957f9
push 0
push 0x496ed0
mov ecx, ebx
call fcn.0042cdb0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 8]
push 0x3f
push edx
lea eax, [esp + 0x180]
push eax
call fcn.00484520
lea edx, [esp + 0x2ec]
add esp, 0xc
mov byte [esp + 0x1b7], 0
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x440440
lea edx, [esp + 0x1d8]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x440455
lea ecx, [esp + 0x1d8]
push 0x5c
push ecx
call fcn.004835ce
add esp, 8
test eax, eax
je 0x44048e
mov byte [eax + 1], 0
lea eax, [esp + 0x1d8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440483
sub eax, edx
jmp 0x440498
mov byte [esp + 0x1d8], 0
xor eax, eax
lea edx, [esp + eax + 0x1d8]
mov ebx, 0x103
sub ebx, eax
lea eax, [esp + 0x2e0]
push 0x5c
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
call fcn.004835ce
add esp, 8
test eax, eax
je 0x4404c7
inc eax
jmp 0x4404ce
lea eax, [esp + 0x2e0]
mov edi, 0x49aca4
mov dword [esp + 0x1c], eax
call fcn.00408f20
test eax, eax
jne 0x4404e7
mov dword [ebp + 0x10], 2
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x2e4]
xor edi, edi
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4407f8
jmp 0x44052a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x18]
call esi
sub eax, dword [0x4a92d4]
mov ecx, dword [0x4a3440]
cmp eax, dword [ecx + 0xb4]
jbe 0x44056d
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1cc]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x440566
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
call esi
mov dword [0x4a92d4], eax
test byte [esp + 0x28], 0x10
je 0x4405a1
cmp byte [esp + 0x54], 0x2e
jne 0x440596
mov al, byte [esp + 0x55]
test al, al
je 0x4407d9
cmp al, 0x2e
jne 0x440596
cmp byte [esp + 0x56], 0
je 0x4407d9
cmp dword [ebp + 0x10], 1
jne 0x4405ab
jmp 0x4407d9
cmp dword [ebp + 0x10], 3
je 0x4407d9
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4405b2
sub eax, edx
cmp eax, ebx
jbe 0x4405d0
mov eax, dword [0x4a3440]
mov dword [eax + 0x30], 0x6f
jmp 0x4407d5
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x54]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4405e0
lea ebx, [esp + 0x178]
cmp byte [esp + 0x178], cl
je 0x4407af
mov edi, edi
movzx esi, byte [ebx]
test esi, 0xffffff80
jne 0x44061d
push 2
push esi
call fcn.00482bfe
add esp, 8
test eax, eax
je 0x44061d
and esi, 0xffffffdf
mov eax, esi
movsx eax, al
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x440635.44
movzx edx, byte [eax + 0x4409cc]
jmp dword [edx*4 + 0x4409a0]
mov edi, 1
jmp case.0x440635.44
mov edi, 2
jmp case.0x440635.44
mov edi, 3
jmp case.0x440635.44
mov eax, 1
cmp edi, eax
jne 0x44066c
or dword [esp + 0x28], eax
jmp case.0x440635.44
cmp edi, 2
jne 0x44067b
and dword [esp + 0x28], 0xfffffffe
jmp case.0x440635.44
cmp edi, 3
jne case.0x440635.44
xor dword [esp + 0x28], eax
jmp case.0x440635.44
cmp edi, 1
jne 0x44069c
or dword [esp + 0x28], 0x20
jmp case.0x440635.44
cmp edi, 2
jne 0x4406ab
and dword [esp + 0x28], 0xffffffdf
jmp case.0x440635.44
cmp edi, 3
jne case.0x440635.44
xor dword [esp + 0x28], 0x20
jmp case.0x440635.44
cmp edi, 1
jne 0x4406cd
or dword [esp + 0x28], 4
jmp case.0x440635.44
cmp edi, 2
jne 0x4406dc
and dword [esp + 0x28], 0xfffffffb
jmp case.0x440635.44
cmp edi, 3
jne case.0x440635.44
xor dword [esp + 0x28], 4
jmp case.0x440635.44
cmp edi, 1
jne 0x4406fe
or dword [esp + 0x28], 2
jmp case.0x440635.44
cmp edi, 2
jne 0x44070d
and dword [esp + 0x28], 0xfffffffd
jmp case.0x440635.44
cmp edi, 3
jne case.0x440635.44
xor dword [esp + 0x28], 2
jmp case.0x440635.44
cmp edi, 1
jne 0x44072f
or dword [esp + 0x28], 0x80
jmp case.0x440635.44
cmp edi, 2
jne 0x44073e
and dword [esp + 0x28], 0xffffff7f
jmp case.0x440635.44
cmp edi, 3
jne case.0x440635.44
xor dword [esp + 0x28], 0x80
jmp case.0x440635.44
cmp edi, 1
jne 0x44075c
or dword [esp + 0x28], 0x1000
jmp case.0x440635.44
cmp edi, 2
jne 0x44076b
and dword [esp + 0x28], 0xffffefff
jmp case.0x440635.44
cmp edi, 3
jne case.0x440635.44
xor dword [esp + 0x28], 0x1000
jmp case.0x440635.44
cmp edi, 1
jne 0x440789
or dword [esp + 0x28], 0x100
jmp case.0x440635.44
cmp edi, 2
jne 0x440798
and dword [esp + 0x28], 0xfffffeff
jmp case.0x440635.44
cmp edi, 3
jne case.0x440635.44
xor dword [esp + 0x28], 0x100
inc ebx
cmp byte [ebx], 0
jne 0x440600
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x1dc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4407d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4a3440]
mov dword [edx + 0x30], eax
inc dword [esp + 0x10]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x440520
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp + 0x14]
test bl, bl
je 0x440937
cmp dword [esp + 0x18], 2
jbe 0x440937
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1dc]
push eax
mov dword [ecx], 0x2a2e2a
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x440937
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440840
mov edi, dword [esp + 0x10]
sub eax, edx
mov esi, eax
nop
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a92d4]
mov ecx, dword [0x4a3440]
cmp eax, dword [ecx + 0xb4]
jbe 0x44089b
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1cc]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x440890
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a92d4], eax
test byte [esp + 0x28], 0x10
je 0x440912
cmp byte [esp + 0x54], 0x2e
jne 0x4408bc
mov al, byte [esp + 0x55]
test al, al
je 0x440912
cmp al, 0x2e
jne 0x4408bc
cmp byte [esp + 0x56], 0
je 0x440912
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4408c3
sub eax, edx
add eax, esi
cmp eax, dword [esp + 0x18]
jae 0x440912
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x58]
push ecx
push 0x49766c
push edx
call fcn.00481c18
mov eax, dword [ebp + 0x10]
add esp, 0x10
push 1
push ebx
push eax
lea ecx, [esp + 0x1e4]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x188]
push edx
call fcn.00440320
add edi, eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x440850
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x44093b
mov edi, dword [esp + 0x10]
cmp byte [ebp + 0x18], 0
jne 0x440993
test edi, edi
je 0x440982
mov eax, dword [0x4a3440]
cmp byte [eax + 0xe4], 0
je 0x440982
push 0x4957f9
push 0
push 0xa
lea ecx, [esp + 0x178]
push ecx
push edi
call fcn.00481372
mov ecx, dword [esp + 0x38]
add esp, 0xc
push eax
call fcn.0042cdb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, edi
cdq
push 0x18
push edx
push eax
mov eax, dword [0x4a7474]
call fcn.004010d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14