Function at 0x409690
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45c779
push eax
mov eax, 0x4294
mov dword fs:[0], esp
call fcn.0042c4d0
push ebx
push ebp
push esi
push edi
mov ecx, 0x103f
xor eax, eax
lea edi, [esp + 0x1a8]
rep stosd dword es:[edi], eax
mov eax, dword [0x4790e8]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x42b4]
lea edx, [esp + 0x14]
xor ebp, ebp
push 1
mov ecx, dword [esi]
push edx
mov dword [esp + 0x42b4], ebp
mov edi, dword [ecx - 8]
mov ecx, esi
call fcn.0044bc17
mov eax, dword [eax]
push 0x4786b8
push eax
call fcn.0042ce73
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.0044ee01
test bl, bl
je 0x40971d
push esi
lea ecx, [esp + 0x24]
call fcn.0044ef3a
jmp 0x40974e
dec edi
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
call fcn.0044bc93
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x42b0], 1
call fcn.0044ef3a
lea ecx, [esp + 0x14]
mov byte [esp + 0x42ac], 0
call fcn.0044ee01
mov eax, dword [0x4790e8]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1a4], 0x47f914
mov ebp, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x42c0]
push 0x4786b4
mov byte [esp + 0x42b0], 5
mov eax, dword [esi]
push eax
call fcn.0042ce73
add esp, 8
test eax, eax
je 0x4097db
lea ecx, [esp + 0x14]
push 3
push ecx
mov ecx, esi
call fcn.0044bc17
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x42b0], 6
call fcn.0044ef3a
lea ecx, [esp + 0x14]
mov byte [esp + 0x42ac], 5
call fcn.0044ee01
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
mov eax, dword [esp + edi*4 + 0x1a4]
push eax
call fcn.0044ef8a
mov ecx, dword [esp + 0x10]
push 0x47f914
push ecx
call fcn.0042ce73
add esp, 8
test eax, eax
jne 0x40983d
lea edx, [esp + 0x20]
push 0x4786b8
lea eax, [esp + 0x38]
push edx
push eax
call fcn.0044f096
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42b0], 7
call fcn.0044ef3a
lea ecx, [esp + 0x34]
mov byte [esp + 0x42ac], 5
call fcn.0044ee01
lea ecx, [esp + 0x10]
push 0x4786b4
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.0044f096
mov eax, dword [eax]
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
call fcn.0044ee01
cmp esi, 0xffffffff
je 0x409aac
mov eax, dword [esp + 0x42c4]
test eax, eax
je 0x4098c6
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x4c]
mov dword [esp + 0x48], 0
rep stosd dword es:[edi], eax
push 1
push 0
push 0
lea edx, [esp + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4098c6
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x409897
mov cl, byte [esp + 0x64]
lea edx, [esp + 0x64]
test edx, edx
je 0x409907
test cl, 0x10
je 0x4099e8
cmp byte [esp + 0x90], 0x2e
jne 0x409907
mov al, byte [esp + 0x91]
test al, al
je 0x409a94
cmp al, 0x2e
jne 0x409907
mov al, byte [esp + 0x92]
test al, al
je 0x409a94
test cl, 0x10
je 0x4099e8
lea eax, [esp + 0x90]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.0044f096
push 0x4786b8
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x42b4], 8
push eax
call fcn.0044f096
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42b0], 9
call fcn.0044ef3a
lea ecx, [esp + 0x40]
mov byte [esp + 0x42ac], 8
call fcn.0044ee01
lea ecx, [esp + 0x3c]
mov byte [esp + 0x42ac], 5
call fcn.0044ee01
mov eax, dword [esp + 0x42c8]
test eax, eax
je 0x4099ca
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
inc eax
push eax
call fcn.0044f2f1
mov edi, dword [esp + 0x1c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + ebp*4 + 0x1a4], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 1]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cdq
mov ecx, 0x1040
mov esi, dword [esp + 0x44]
idiv ecx
mov ebp, edx
mov eax, dword [esp + 0x42bc]
lea edx, [esp + 0x18]
push 1
push edx
push eax
call dword [esp + 0x42c4]
add esp, 0xc
jmp 0x409a94
lea ecx, [esp + 0x90]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0044f096
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x42b0], 0xa
call fcn.0044ef3a
lea ecx, [esp + 0x30]
mov byte [esp + 0x42ac], 5
call fcn.0044ee01
mov edi, dword [esp + 0x14]
test edi, edi
je 0x409a77
lea ecx, [esp + 0x38]
push 3
push ecx
lea ecx, [esp + 0x24]
call fcn.0044bc17
mov eax, dword [eax]
push edi
push eax
call fcn.0042bed4
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call fcn.0044ee01
test bl, bl
je 0x409a94
mov eax, dword [esp + 0x42bc]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
call dword [esp + 0x42c4]
add esp, 0xc
test eax, eax
je 0x409af1
jmp 0x409a94
mov edx, dword [esp + 0x42bc]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
call dword [esp + 0x42c4]
add esp, 0xc
test eax, eax
je 0x409af1
lea eax, [esp + 0x64]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x409877
mov edi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x42c8]
test eax, eax
je 0x409b57
mov eax, dword [esp + edi*4 + 0x1a4]
cmp eax, 0x47f914
je 0x409ad9
push eax
call fcn.0044f31a
add esp, 4
lea eax, [edi + 1]
mov ecx, 0x1040
cdq
idiv ecx
cmp edx, ebp
mov dword [esp + 0x28], edx
je 0x409b57
jmp 0x4097db
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
mov byte [esp + 0x42ac], 4
call fcn.0044ee01
lea ecx, [esp + 0x24]
mov byte [esp + 0x42ac], 3
call fcn.0044ee01
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42ac], 2
call fcn.0044ee01
lea ecx, [esp + 0x10]
mov byte [esp + 0x42ac], 0
call fcn.0044ee01
lea ecx, [esp + 0x20]
mov dword [esp + 0x42ac], 0xffffffff
call fcn.0044ee01
mov eax, 2
jmp 0x409bb4
lea ecx, [esp + 0x18]
mov byte [esp + 0x42ac], 4
call fcn.0044ee01
lea ecx, [esp + 0x24]
mov byte [esp + 0x42ac], 3
call fcn.0044ee01
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42ac], 2
call fcn.0044ee01
lea ecx, [esp + 0x10]
mov byte [esp + 0x42ac], 0
call fcn.0044ee01
lea ecx, [esp + 0x20]
mov dword [esp + 0x42ac], 0xffffffff
call fcn.0044ee01
mov eax, 1
mov ecx, dword [esp + 0x42a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x42a0
ret