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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov eax, 0x103
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [edi + 0x208]
sub eax, ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
push eax
push edi
mov dword [esp + 0x14], ecx
call esi
mov ecx, dword fs:[0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp eax, 0xffffffff
je 0x459928
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4e498c]
sub eax, dword [0x4ea0c4]
cmp eax, dword [esi + 0xb8]
jbe 0x459872
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 0x459861
mov eax, dword [esp + 0x18]
cmp dword [0x4e9a38], eax
jne 0x459861
mov edx, 1
or ecx, 0xffffffff
call fcn.00401a30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4e498c]
mov dword [0x4ea0c4], eax
test byte [esp + 0x40], 0x10
je 0x45989e
cmp byte [esp + 0x6c], 0x2e
jne 0x459893
mov al, byte [esp + 0x6d]
test al, al
je 0x4598ff
cmp al, 0x2e
jne 0x459893
cmp byte [esp + 0x6e], 0
je 0x4598ff
cmp dword [edi + 0x218], 1
jne 0x4598a7
jmp 0x4598ff
cmp dword [edi + 0x218], 2
je 0x4598ff
lea ecx, [esp + 0x6c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4598b0
sub ecx, edx
cmp ecx, dword [esp + 0x14]
jbe 0x4598c8
mov dword [esi + 0x30], 0x6f
jmp 0x4598fe
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x6c]
add edx, edi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4598d6
push dword [edi + 0x214]
lea eax, [esp + 0x44]
push eax
mov eax, dword [edi + 0x210]
push edi
call eax
add esp, 0xc
test eax, eax
jne 0x4598ff
inc ebx
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x459817
push esi
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp byte [edi + 0x21c], 0
je 0x459a62
cmp dword [esp + 0x14], 1
jbe 0x459a62
mov eax, dword [esp + 0xc]
mov edx, 0x2a
mov word [eax + edi], dx
lea eax, [esp + 0x40]
push eax
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x459a4f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x4e498c]
sub eax, dword [0x4ea0c4]
cmp eax, dword [ecx + 0xb8]
jbe 0x4599b3
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 0x4599ac
mov eax, dword [esp + 0x18]
cmp dword [0x4e9a38], eax
jne 0x4599ac
mov edx, 1
or ecx, 0xffffffff
call fcn.00401a30
call esi
mov dword [0x4ea0c4], eax
test byte [esp + 0x40], 0x10
je 0x459a34
cmp byte [esp + 0x6c], 0x2e
jne 0x4599d4
mov al, byte [esp + 0x6d]
test al, al
je 0x459a34
cmp al, 0x2e
jne 0x4599d4
cmp byte [esp + 0x6e], 0
je 0x459a34
lea esi, [esp + 0x6c]
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4599e0
mov eax, dword [edi + 0x20c]
sub esi, ecx
add eax, esi
cmp eax, dword [esp + 0x14]
jae 0x459a2e
lea eax, [edi + 0x104]
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x14]
add eax, edi
push str._s_s
push eax
call fcn.004058d0
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov ecx, dword [esp + 0x20]
inc eax
add eax, esi
mov dword [edi + 0x208], eax
push edi
call fcn.004597c0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x459966
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
add dword [edi + 0x220], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add dword [edi + 0x220], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4