Function at 0x404190
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x188
lea eax, [esp + 0x1f]
push ebx
mov ebx, ecx
push ebp
lea ecx, [esp + 0xb]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f010
lea edx, [esp + 0x50]
push edx
push str.lang.dll
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4041d8
lea ecx, [esp + 0x10]
call fcn.00405d20
pop ebp
xor al, al
pop ebx
add esp, 0x188
ret
push esi
lea eax, [esp + 0xf]
push edi
push eax
lea ecx, [esp + 0x44]
call fcn.00405d90
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x84]
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.00406380
lea eax, [esp + 0x40]
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00406190
push eax
lea ecx, [esp + 0x28]
call fcn.004b8b50
lea edx, [esp + 0x28]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.004b8b30
push eax
lea ecx, [esp + 0x34]
call fcn.004b8b50
lea ecx, [esp + 0x40]
call fcn.00406010
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x58]
push ecx
push ebp
call esi
test eax, eax
je 0x4042f6
lea edx, [esp + 0x13]
lea ecx, [esp + 0x4c]
push edx
call fcn.00405d90
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x84]
lea ecx, [esp + 0x84]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00406380
lea edx, [esp + 0x4c]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.00406190
push eax
lea ecx, [esp + 0x28]
call fcn.004b8b50
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004b8b30
push eax
lea ecx, [esp + 0x44]
call fcn.004b8b50
lea ecx, [esp + 0x4c]
call fcn.00406010
lea eax, [esp + 0x58]
push eax
push ebp
call esi
test eax, eax
jne 0x40426b
lea ecx, [esp + 0x24]
xor edi, edi
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
call fcn.005d8060
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.00470dc0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x4043ba
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ecx
push eax
call fcn.00406480
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], ecx
call fcn.00406480
mov eax, dword [esp + 0x38]
add esp, 8
mov eax, dword [eax + 0x10]
push eax
call esi
cmp eax, edi
mov dword [esp + 0x38], eax
je 0x404391
mov edx, dword [ebx + 0x45c]
lea ecx, [ebx + 0x458]
cmp edx, dword [ecx + 8]
je 0x404384
cmp edx, edi
je 0x40437e
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x404391
lea eax, [esp + 0x38]
push 1
push eax
push edx
call fcn.00485120
lea ecx, [esp + 0x14]
push ecx
call fcn.00406480
add esp, 4
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
call fcn.00470dc0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x404332
mov eax, dword [ebx + 0x448]
lea edx, [ebx + 0x448]
cmp eax, edi
je 0x4043f7
mov eax, dword [ebx + 0x45c]
mov esi, dword [ebx + 0x460]
lea ecx, [ebx + 0x458]
cmp eax, esi
je 0x4043ee
cmp eax, edi
je 0x4043e8
mov edx, dword [edx]
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x4043f7
push 1
push edx
push eax
call fcn.00485120
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 0x458]
mov ecx, dword [ebx + 0x45c]
cmp eax, ecx
mov eax, dword [esp + 0x1c]
setne bl
cmp eax, edi
je 0x404441
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x18]
push edx
call fcn.00406140
mov eax, dword [esp + 0x18]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 4], edi
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], eax
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
call fcn.00405f00
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x188
ret