Function at 0x405530
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x12ec
call fcn.004891f0
mov eax, dword [0x4aab30]
xor eax, esp
mov dword [esp + 0x12e4], eax
mov eax, dword [esp + 0x12f0]
mov ecx, dword [esp + 0x12fc]
mov edx, dword [esp + 0x1304]
push ebx
mov ebx, dword [esp + 0x131c]
push ebp
mov ebp, dword [esp + 0x1324]
push esi
mov esi, dword [esp + 0x1320]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1314]
push edi
mov edi, dword [esp + 0x1304]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x131c]
mov dword [esp + 0x24], eax
xor eax, eax
push 0x410
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1324]
push eax
lea ecx, [esp + 0x6b2]
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], ebx
mov word [esp + 0x6b4], ax
call fcn.0047d730
add esp, 0xc
xor edx, edx
push 0x410
push edx
lea eax, [esp + 0xaca]
push eax
mov word [esp + 0xacc], dx
call fcn.0047d730
add esp, 0xc
mov byte [esp + 0x12], 1
test esi, esi
je 0x405615
push ebx
push esi
push 0x49d768
lea edx, [esp + 0x6b4]
call fcn.00405aa0
add esp, 0xc
lea ecx, [esp + 0xed8]
push ecx
mov ebx, 0x49d774
mov eax, 0x412
call fcn.00406d50
add esp, 4
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xedc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x405860
nop
lea ecx, [esp + 0x6c]
push 0x104
push ecx
call fcn.0047b3ae
add esp, 8
test byte [esp + 0x40], 0x10
jne 0x40582e
mov esi, dword [esp + 0x18]
lea edx, [esp + 0xac0]
push edx
lea ebx, [esp + 0x70]
mov edi, esi
mov eax, 0x412
call fcn.00406d50
add esp, 4
cmp dword [esp + 0x1c], 0
mov byte [esp + 0x13], 0
je 0x4056df
cmp byte [ebp], 0
jne 0x4056df
mov edi, dword [esp + 0x28]
push edi
push esi
call fcn.00413190
add esp, 8
test eax, eax
jl 0x4056db
cmp byte [ebp + 1], 0
mov byte [esp + 0x13], 1
mov bl, 1
je 0x4056c3
cmp byte [ebp], 0
jne 0x4056e1
push edi
push esi
call fcn.00413190
add esp, 8
test eax, eax
jle 0x4056e1
mov byte [ebp + 1], 1
mov byte [ebp], 1
jmp 0x4056e1
xor bl, bl
jmp 0x4056e1
mov bl, 1
xor eax, eax
mov dword [esp + 0x34], eax
test bl, bl
je 0x40582e
nop
cmp eax, dword [esp + 0x1308]
jge 0x40582e
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + eax*4]
push edx
lea eax, [esp + 0x70]
push eax
call fcn.00412aa0
add esp, 8
test al, al
je 0x405820
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40574b
cmp byte [ebp + 1], 0
jne 0x40574b
cmp byte [esp + 0x13], 0
je 0x40574b
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.0047ba00
add esp, 8
test eax, eax
jl 0x40574b
mov byte [ebp + 1], 1
mov byte [ebp], 1
jmp 0x405755
cmp byte [ebp], 0
je 0x405816
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40575f
inc dword [eax]
cmp dword [esp + 0x24], 0
je 0x40580c
push esi
call fcn.0047ab2f
mov edi, eax
add esp, 4
test edi, edi
je 0x4057b6
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405780
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x4057b6
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4057a0
sub eax, edx
sar eax, 1
xor edx, edx
mov word [edi + eax*2 - 2], dx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x6c]
call fcn.00406dd0
mov esi, eax
test edi, edi
je 0x4057e6
test esi, esi
je 0x4057e6
mov ecx, dword [esp + 0x20]
push esi
lea eax, [esp + 0x70]
push eax
push edi
push ecx
call dword [esp + 0x34]
add esp, 0x10
mov byte [esp + 0x12], al
jmp 0x4057eb
mov byte [esp + 0x12], 1
test esi, esi
je 0x4057f8
push esi
call fcn.0047a868
add esp, 4
test edi, edi
je 0x405805
push edi
call fcn.0047a868
add esp, 4
cmp byte [esp + 0x12], 0
je 0x40582e
cmp byte [ebp], 0
mov esi, dword [esp + 0x18]
jne 0x405820
cmp byte [ebp + 1], 0
je 0x405820
mov byte [ebp], 1
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
jmp 0x4056f0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40584d
cmp byte [esp + 0x12], 1
je 0x405650
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xedc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x405a4a
lea ecx, [esp + 0x6c]
push 0x104
push ecx
call fcn.0047b3ae
mov eax, dword [esp + 0x48]
add esp, 8
test al, 0x10
je 0x405a20
test eax, 0x400
jne 0x405a20
cmp byte [esp + 0x1310], 0
je 0x405a20
mov ecx, 0x49d778
lea eax, [esp + 0x6c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4058e6
test dx, dx
je 0x4058e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4058e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4058c0
xor eax, eax
jmp 0x4058eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405a20
mov ecx, 0x49d77c
lea eax, [esp + 0x6c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405926
test dx, dx
je 0x405922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405926
add eax, 4
add ecx, 4
test dx, dx
jne 0x405900
xor eax, eax
jmp 0x40592b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405a20
lea edx, [esp + 0x290]
push edx
lea ebx, [esp + 0x70]
mov eax, 0x412
call fcn.00406d50
add esp, 4
lea eax, [esp + 0x290]
push 0x209
push eax
call fcn.0047b3ae
add esp, 8
test ebp, ebp
jne 0x405969
mov al, 1
jmp 0x4059a9
cmp byte [ebp], 0
je 0x405973
mov al, 1
jmp 0x4059a9
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x294]
push esi
push edx
call fcn.00412fb0
add esp, 0xc
test al, al
je 0x405a7a
cmp byte [esp + 0x13], 0
je 0x40596f
cmp dword [esp + 0x1c], 0
je 0x4059a3
mov al, 1
jmp 0x4059a9
mov byte [ebp + 1], 1
xor al, al
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x4059c9
cmp byte [ebp], 0
je 0x4059c9
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x290]
push ecx
push edx
call ebx
add esp, 8
test al, al
je 0x405a16
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
push ebp
push eax
mov eax, dword [esp + 0x34]
push esi
push ecx
mov ecx, dword [esp + 0x1320]
push ebx
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x1324]
push ecx
push edx
mov edx, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x2b8]
push ecx
push edx
call fcn.00405530
add esp, 0x30
mov byte [esp + 0x12], al
test al, al
je 0x405a3f
cmp byte [ebp + 1], 0
je 0x405a20
mov byte [ebp], 1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405a3f
cmp byte [esp + 0x12], 1
je 0x405880
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x405a5d
mov ecx, dword [esp + 0x20]
push edi
push ecx
call eax
add esp, 8
mov ecx, dword [esp + 0x12f4]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047a722
add esp, 0x12ec
ret
lea eax, [esp + 0x290]
push esi
push eax
call fcn.00413190
add esp, 8
test eax, eax
jl 0x4059a7
mov al, 1
mov byte [ebp + 1], al
mov byte [ebp], al
jmp 0x4059a9