Function at 0x462230
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x54c03c]
mov ebx, dword [ebp + 8]
lea esi, [ecx + 4]
lea edx, [ecx + 0x294]
mov edi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], edx
lea esi, [ecx + 0x30]
lea edx, [ecx + 0x258]
lea ecx, [ecx + 0x278]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
jmp 0x4622a0
call fcn.0040fef0
jmp 0x4622a0
mov ecx, esi
jmp 0x462280
cmp byte [edi], 0
je 0x4622d0
push dword [ebp - 0x3c]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x462350
cmp dword [edi + 0x254], 0xffffffff
jne 0x4623d5
jmp 0x462400
mov eax, dword [edi + 0x2a0]
cmp dword [edi + 0x29c], eax
je 0x462564
test eax, eax
jne 0x4622ec
mov eax, dword [edi + 0x298]
mov ecx, dword [edi + 0x294]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8 - 0x18]
mov ecx, dword [ebp - 0x30]
push eax
call fcn.0040ff50
mov eax, dword [edi + 0x2a0]
test eax, eax
jne 0x462312
mov eax, dword [edi + 0x298]
dec eax
lea ecx, [eax + eax*2]
mov dword [edi + 0x2a0], eax
shl ecx, 3
add ecx, dword [edi + 0x294]
call fcn.0040fef0
mov ecx, dword [ebp - 0x34]
call fcn.00462830
mov eax, dword [edi + 0x290]
mov esi, ebx
test eax, eax
je 0x46236b
cmp eax, 1
jne 0x462393
mov ecx, dword [ebp - 0x30]
push 1
push 0x506a3a
jmp 0x462388
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x462400
mov eax, dword [edi + 0x288]
cmp dword [edi + 0x28c], 7
mov edx, dword [ebp - 0x2c]
jbe 0x462383
mov edx, dword [edi + 0x278]
mov ecx, dword [ebp - 0x30]
push eax
push edx
lea ebx, [ebp - 0x28]
push ebx
call fcn.004113e0
jmp 0x46239d
lea ebx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040fd00
cmp dword [ebp - 0x14], 7
mov eax, ebx
jbe 0x4623a8
mov eax, dword [ebp - 0x28]
push 2
push 0
push 0
push dword [ebp - 0x3c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov ecx, ebx
mov dword [edi + 0x254], eax
mov byte [edi], 1
call fcn.0040fef0
mov ebx, esi
cmp dword [edi + 0x254], 0xffffffff
je 0x462400
mov eax, dword [ebp - 0x38]
cmp word [eax], 0
je 0x462440
xor eax, eax
lea esi, [ebp - 0x28]
nop word cs:[eax + eax]
nop dword [eax]
cmp word [edi + eax*2 + 0x32], 0
lea eax, [eax + 1]
jne 0x4623f0
jmp 0x462445
mov byte [edi], 0
cmp dword [edi + 0x290], 0
jne 0x4622a0
mov eax, dword [edi + 0x28c]
test eax, eax
je 0x462505
cmp eax, 8
mov eax, dword [ebp - 0x2c]
jb 0x46242b
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [edi + 0x288], 1
mov dword [eax], 0x2a
jmp 0x4622a0
xor eax, eax
lea esi, [ebp - 0x28]
mov ecx, esi
push eax
push dword [ebp - 0x38]
call fcn.0040fe40
mov ecx, edi
push esi
call fcn.004628f0
test al, al
jne 0x462290
mov eax, ebx
mov ebx, dword [edi + 4]
mov ecx, dword [ebp - 0x30]
push esi
mov esi, eax
push eax
call fcn.00411df0
test bl, 0x10
je 0x4624e0
cmp byte [edi + 0x270], 0
je 0x4624e0
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x462489
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x4624e0
mov ecx, dword [ebp - 0x34]
push 1
call fcn.00462640
mov eax, dword [edi + 0x2a0]
lea ecx, [eax + eax*2]
shl ecx, 3
add ecx, dword [edi + 0x294]
push esi
call fcn.0040fd20
mov eax, dword [edi + 0x298]
mov ecx, dword [edi + 0x2a0]
mov edx, 0
dec eax
cmp ecx, eax
lea eax, [ecx + 1]
cmove eax, edx
mov dword [edi + 0x2a0], eax
nop dword [eax]
and ebx, 0x10
mov ecx, edi
shr ebx, 4
push ebx
call fcn.00462a70
test al, al
mov ebx, esi
je 0x462555
mov eax, dword [edi + 0x290]
cmp eax, 1
je 0x46252b
test eax, eax
jne 0x462555
jmp 0x46256d
sub esp, 0xc
mov al, byte [ebp - 0x28]
mov byte [esp + 4], al
mov dword [esp + 8], 0x506a3a
mov dword [esp], 1
mov ecx, dword [ebp - 0x2c]
call fcn.0040184a
jmp 0x4622a0
cmp dword [edi + 0x28c], 8
mov eax, dword [ebp - 0x2c]
jb 0x46253c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
jbe 0x462548
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x46256d
mov ecx, ebx
call fcn.0040fef0
lea ecx, [ebp - 0x28]
jmp 0x462280
mov ecx, ebx
call fcn.0040fd00
jmp 0x462575
lea ecx, [ebp - 0x28]
call fcn.0040fef0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 4