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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c37d
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
and eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x14]
and ecx, 2
mov dword [ebp - 0x278], ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
call fcn.10001d60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.100525c0
add esp, 4
push 0x10075e24
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.100070c0
add esp, 0xc
mov byte [ebp - 4], 1
push 0x250
push 0
lea eax, [ebp - 0x274]
push eax
call fcn.10038c10
add esp, 0xc
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1001ad60
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x100548b4
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x27c]
call fcn.10001d60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x274]
and eax, 0x10
je 0x10054745
cmp dword [ebp - 0x278], 0
je 0x10054740
push 0x10075e2c
lea ecx, [ebp - 0x27c]
push ecx
call fcn.10022760
add esp, 8
movzx edx, al
test edx, edx
je 0x10054740
push 0x10075e30
lea eax, [ebp - 0x27c]
push eax
call fcn.10022760
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x10054740
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x288]
push ecx
call fcn.10007010
add esp, 0xc
mov dword [ebp - 0x298], eax
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], edx
mov byte [ebp - 4], 3
push 0x10075e38
mov eax, dword [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.100070c0
add esp, 0xc
mov dword [ebp - 0x2a0], eax
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x2a4]
call fcn.1001ad60
push eax
call fcn.10054580
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
call fcn.10001fa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x288]
call fcn.10001fa0
jmp 0x1005487a
cmp dword [ebp - 0x10], 0
jne 0x1005475a
mov eax, dword [ebp - 0x274]
and eax, 2
jne 0x1005487a
lea ecx, [ebp - 0x27c]
call fcn.1001ad60
push eax
lea ecx, [ebp - 0x284]
push ecx
call fcn.10053d20
add esp, 8
mov byte [ebp - 4], 5
push 0x10075e3c
lea ecx, [ebp - 0x290]
call fcn.10001d60
mov dword [ebp - 0x2a8], eax
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x280]
push edx
call fcn.10007010
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x290]
call fcn.10001fa0
push 0x10075e40
mov eax, dword [ebp + 0xc]
push eax
call fcn.1003b7a4
add esp, 8
test eax, eax
je 0x1005480e
lea ecx, [ebp - 0x284]
call fcn.100071f0
movzx ecx, al
test ecx, ecx
jne 0x1005485c
lea ecx, [ebp - 0x280]
call fcn.1001ad60
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.10050850
add esp, 8
test eax, eax
je 0x1005485c
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x294]
push edx
call fcn.10007010
add esp, 0xc
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2b4]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.100073c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x294]
call fcn.10001fa0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
call fcn.10001fa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x284]
call fcn.10001fa0
lea edx, [ebp - 0x274]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100548a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.10001fa0
jmp 0x100548b4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.10001fa0
jmp 0x10054627
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001fa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001fa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret