Function at 0x100238d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003587d
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x1004805c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x2b0], eax
call fcn.10002af0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.100240c0
test al, al
jne 0x1002394c
lea ecx, [ebp - 0x58]
call fcn.10024180
test al, al
jne 0x1002393a
cmp dword [ebp - 0x48], 0x104
jb 0x1002394c
xor dl, dl
lea ecx, [ebp - 0x58]
call fcn.10023440
test al, al
je 0x10023b4c
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.10002af0
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x10023964
mov esi, dword [esi]
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.1001b1e0
push 0x250
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.10031240
add esp, 0xc
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x2ac], eax
cmp eax, 0xffffffff
je 0x10023b02
nop dword [eax]
nop dword [eax + eax]
test byte [ebp - 0x2a8], 0x10
je 0x10023adf
xor eax, eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100239f1
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10002bf0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
cmp ebx, 8
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae esi, edi
cmp eax, 1
jne 0x10023a4a
mov ecx, 0x1003f3e8
mov edx, eax
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x10023a47
add ecx, 2
sub edx, 1
jne 0x10023a34
jmp 0x10023aa1
mov eax, dword [ebp - 0x18]
cmp ebx, 8
lea esi, [ebp - 0x28]
cmovae esi, edi
cmp eax, 2
jne 0x10023a74
mov edx, eax
mov eax, 0x1003fd90
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x10023a74
add eax, 2
sub edx, 1
jne 0x10023a61
jmp 0x10023aa1
mov esi, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x28]
push ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x10023a93
mov ecx, eax
call fcn.10002af0
add dword [esi + 4], 0x18
jmp 0x10023a9b
push eax
mov ecx, esi
call fcn.10006210
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp ebx, 8
jb 0x10023ad9
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10023acf
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023b78
push ecx
push edi
call fcn.1002f71a
add esp, 8
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x2ac]
jne 0x100239c0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10023b38
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10023b2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023b78
push edx
push ecx
call fcn.1002f71a
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x10023b88
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10023b7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10023b7e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002f71a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f3c2
mov esp, ebp
pop ebp
ret 8