Function at 0x407bb0
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 0x45b030
mov dword [ebp], edi
push eax
mov dword [esp + 0x20], edi
mov dword [ebx], edi
call fcn.00440b2d
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 0x407c25
push esi
call fcn.004080c0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x7d6
pop ebx
add esp, 0x54c
ret
lea eax, [esp + 0x48]
push 0x45b038
push eax
call fcn.004053e0
add esp, 8
test al, al
jne 0x407dc6
lea ecx, [esp + 0x48]
push 0x45b03c
push ecx
call fcn.004053e0
add esp, 8
test al, al
jne 0x407dc6
mov edx, dword [esp + 0x564]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00405520
add esp, 8
test al, al
je 0x407dc6
mov eax, dword [esp + 0x570]
cmp eax, 3
jne 0x407ca2
lea ecx, [esp + 0x48]
push 0x45b040
push ecx
call fcn.00405f70
lea edx, [esp + 0x50]
add esp, 8
cmp eax, edx
je 0x407dc6
jmp 0x407ca6
test eax, eax
je 0x407d16
lea eax, [esp + 0x48]
push eax
push esi
lea ecx, [esp + 0x164]
push 0x45b044
push ecx
call fcn.00440b2d
lea edx, [esp + 0x23]
push edx
lea eax, [esp + 0x170]
push eax
call fcn.004106e0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x407dea
mov al, byte [esp + 0x13]
test al, al
je 0x407d16
lea ecx, [esp + 0x15c]
push ecx
call fcn.00406f20
mov ecx, dword [esp + 0x574]
add esp, 4
dec ecx
je 0x407d0d
dec ecx
jne 0x407d16
cmp eax, 2
jne 0x407dc6
jmp 0x407d16
cmp eax, 1
jne 0x407dc6
cmp dword [ebp], edi
jl 0x407d50
mov edx, dword [0x45abe4]
push 0xdb3
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 0x407e0b
add edi, 0x32
mov dword [esp + 0x14], edi
mov dword [ebx], eax
lea ecx, [esp + 0x48]
test ecx, ecx
je 0x407d68
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x407d6a
xor ecx, ecx
mov edx, dword [0x45abe4]
push 0xdb4
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 0x407e4c
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 0x407e72
mov esi, dword [esp + 0x560]
jmp 0x407c25
mov edx, dword [0x45abe4]
push 0xd9e
push edx
call fcn.0040ce10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
mov eax, dword [0x45abe4]
push 0xdb3
push eax
push 0x45b04c
call fcn.0040cd30
mov ecx, dword [ebp]
mov edx, dword [ebx]
push ecx
push edx
call fcn.00405b70
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 [0x45abe4]
push 0xdb7
push eax
push 0x45b05c
call fcn.0040cd30
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 0x407ee4
mov ecx, dword [ebp]
test ecx, ecx
jle 0x407ee4
mov edx, dword [0x45abe4]
push 0xdbf
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 0x407ed0
mov edx, dword [0x45abe4]
push 0xdc0
push edx
push 0x45b078
call fcn.0040cd30
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x7d1
pop ebx
add esp, 0x54c
ret
mov ecx, dword [ebp]
push 0x407f00
push 4
push ecx
push eax
call fcn.00440f7d
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54c
ret