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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4b13a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x68], eax
jmp 0x456870
mov al, byte [esi]
test al, al
jne 0x4569cd
cmp dword [esi + 0x2a0], 0
je 0x456b8b
test al, al
jne 0x4569cd
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x4568af
mov edx, dword [edx]
test edx, edx
je 0x4568af
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x4568c6
mov eax, dword [eax]
test eax, eax
je 0x4568c6
mov eax, dword [eax]
test eax, eax
je 0x4568c6
mov eax, dword [eax]
jmp 0x4568c8
xor eax, eax
mov ecx, dword [eax + 8]
lea edi, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
push dword [eax + ecx*4]
mov ecx, edi
call fcn.00445a50
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [esi + 0x298]
dec eax
and ecx, eax
mov eax, dword [esi + 0x294]
mov ecx, dword [eax + ecx*4]
call fcn.00407ff0
dec dword [esi + 0x2a0]
jne 0x456919
mov dword [esi + 0x29c], 0
push edi
lea ecx, [ebp - 0x34]
call fcn.00445930
sub esp, 8
cmp dword [esi + 0x288], 0
jne 0x45693f
mov eax, esp
mov dword [eax], 0x49f0d8
mov dword [eax + 4], 1
jmp 0x456963
cmp dword [esi + 0x28c], 8
mov edx, esp
jb 0x456952
mov ecx, dword [esi + 0x278]
jmp 0x456958
lea ecx, [esi + 0x278]
mov dword [edx], ecx
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
call fcn.00445b90
push eax
lea ecx, [ebp - 0x34]
call fcn.00445a50
lea ecx, [ebp - 0x64]
call fcn.00407ff0
call fcn.0044c3b0
cmp eax, 4
lea ebx, [esi + 4]
lea eax, [ebp - 0x34]
jl 0x4569aa
cmp dword [ebp - 0x20], 8
push 2
cmovae eax, dword [ebp - 0x34]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x4569ba
cmp dword [ebp - 0x20], 8
push ebx
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x34]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.00407ff0
jmp 0x4569f7
lea ebx, [esi + 4]
push ebx
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4569f7
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x456a91
xor eax, eax
mov byte [esi], 0
mov word [ebp - 0x4c], ax
lea edi, [esi + 0x278]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
cmp edi, eax
je 0x456870
cmp dword [edi + 0x14], 8
jb 0x456a3c
push dword [edi]
call fcn.0047bc0a
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jae 0x456a7e
mov eax, dword [ebp - 0x3c]
inc eax
je 0x456a83
add eax, eax
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
call fcn.0047bd50
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x456870
mov eax, dword [ebp - 0x4c]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x456870
sub esp, 8
lea edi, [esi + 0x30]
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x456aa3
xor ecx, ecx
jmp 0x456ac5
cmp word [edi], 0
jne 0x456aad
xor ecx, ecx
jmp 0x456ac5
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x6c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456ab5
sub ecx, dword [ebp - 0x6c]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x1c]
call fcn.00445960
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00456480
test al, al
je 0x456aec
lea ecx, [ebp - 0x1c]
call fcn.00407ff0
jmp 0x456870
sub esp, 8
mov ecx, esp
mov dword [ecx], edi
test edi, edi
je 0x456b13
cmp word [edi], 0
jne 0x456b01
xor edi, edi
jmp 0x456b13
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x456b04
sub edi, edx
sar edi, 1
lea eax, [ebp - 0x64]
mov dword [ecx + 4], edi
push eax
lea ecx, [esi + 0x258]
call fcn.00445b90
push eax
lea ecx, [ebp - 0x1c]
call fcn.00445a50
lea ecx, [ebp - 0x64]
call fcn.00407ff0
test byte [ebx], 0x10
je 0x456b75
cmp byte [esi + 0x270], 0
je 0x456b6c
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x456b6c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x290]
call fcn.00456dc0
test byte [esi + 0x274], 2
jmp 0x456b7c
test byte [esi + 0x274], 1
jne 0x456b95
lea ecx, [ebp - 0x1c]
call fcn.00407ff0
jmp 0x456870
mov ecx, dword [ebp - 0x68]
call fcn.004459c0
jmp 0x456ba9
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
push eax
call fcn.00445930
lea ecx, [ebp - 0x1c]
call fcn.00407ff0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x68]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047cd41
mov esp, ebp
pop ebp
ret 4