Function at 0x407ca0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x54c
push ebx
mov ebx, dword [esp + 0x55c]
push ebp
mov ebp, dword [esp + 0x564]
push esi
mov esi, dword [esp + 0x55c]
push edi
push esi
xor edi, edi
lea eax, [esp + 0x360]
push str._s_
mov dword [ebp], edi
push eax
mov dword [esp + 0x20], edi
mov dword [ebx], edi
call fcn.0044077d
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x407d15
push esi
call fcn.004081a0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x7d6
pop ebx
add esp, 0x54c
ret
lea eax, [esp + 0x48]
push 0x45aff8
push eax
call fcn.00405320
add esp, 8
test al, al
jne 0x407eb6
lea ecx, [esp + 0x48]
push 0x45affc
push ecx
call fcn.00405320
add esp, 8
test al, al
jne 0x407eb6
mov edx, dword [esp + 0x564]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00405460
add esp, 8
test al, al
je 0x407eb6
mov eax, dword [esp + 0x570]
cmp eax, 3
jne 0x407d92
lea ecx, [esp + 0x48]
push 0x45b000
push ecx
call fcn.00405eb0
lea edx, [esp + 0x50]
add esp, 8
cmp eax, edx
je 0x407eb6
jmp 0x407d96
test eax, eax
je 0x407e06
lea eax, [esp + 0x48]
push eax
push esi
lea ecx, [esp + 0x164]
push 0x45b004
push ecx
call fcn.0044077d
lea edx, [esp + 0x23]
push edx
lea eax, [esp + 0x170]
push eax
call fcn.00410350
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x407eda
mov al, byte [esp + 0x13]
test al, al
je 0x407e06
lea ecx, [esp + 0x15c]
push ecx
call fcn.00407010
mov ecx, dword [esp + 0x574]
add esp, 4
dec ecx
je 0x407dfd
dec ecx
jne 0x407e06
cmp eax, 2
jne 0x407eb6
jmp 0x407e06
cmp eax, 1
jne 0x407eb6
cmp dword [ebp], edi
jl 0x407e40
mov edx, dword [str.gen_fs.c]
push 0xd74
push edx
lea eax, [edi*4 + 0xc8]
push 1
push eax
mov eax, dword [ebx]
push eax
call sym.gateway.exe_gen__mem_realloc
add esp, 0x14
cmp eax, 0x3e8
jbe 0x407efb
add edi, 0x32
mov dword [esp + 0x14], edi
mov dword [ebx], eax
lea ecx, [esp + 0x48]
test ecx, ecx
je 0x407e58
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x407e5a
xor ecx, ecx
mov edx, dword [str.gen_fs.c]
push 0xd75
push edx
inc ecx
push 1
push ecx
call sym.gateway.exe_gen__mem_malloc
mov ecx, dword [ebp]
mov edx, dword [ebx]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp]
mov ecx, dword [ebx]
mov edx, dword [ecx + eax*4]
add esp, 0x10
test edx, edx
je 0x407f3c
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov edi, dword [esp + 0x14]
inc eax
mov dword [ebp], eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x407f62
mov esi, dword [esp + 0x560]
jmp 0x407d15
mov edx, dword [str.gen_fs.c]
push 0xd5f
push edx
call fcn.0040ca80
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
mov eax, dword [str.gen_fs.c]
push 0xd74
push eax
push 0x45b00c
call fcn.0040c9a0
mov ecx, dword [ebp]
mov edx, dword [ebx]
push ecx
push edx
call fcn.00405ab0
add esp, 0x14
pop edi
mov dword [ebx], 0
pop esi
mov dword [ebp], 0
pop ebp
mov eax, 0x7d1
pop ebx
add esp, 0x54c
ret
mov eax, dword [str.gen_fs.c]
push 0xd78
push eax
push str._list__num_list____NULL
call fcn.0040c9a0
add esp, 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x54c
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx]
test eax, eax
je 0x407fd4
mov ecx, dword [ebp]
test ecx, ecx
jle 0x407fd4
mov edx, dword [str.gen_fs.c]
push 0xd80
push edx
push 1
shl ecx, 2
push ecx
push eax
call sym.gateway.exe_gen__mem_realloc
add esp, 0x14
test eax, eax
mov dword [ebx], eax
jne 0x407fc0
mov edx, dword [str.gen_fs.c]
push 0xd81
push edx
push str.list___NULL
call fcn.0040c9a0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x7d1
pop ebx
add esp, 0x54c
ret
mov ecx, dword [ebp]
push 0x407ff0
push 4
push ecx
push eax
call fcn.00440bcd
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54c
ret