Function at 0x45d3d0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x60b3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45d68f
mov ecx, eax
shr ecx, 0xa
and ecx, 0xffffff01
mov dword [ebp - 0x29c], ecx
test al, 0x10
jne 0x45d46b
mov edi, dword [ebp + 0x34]
mov eax, dword [ebp + 8]
mov byte [ebp - 0x14], cl
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
test edi, edi
je 0x45d6ce
mov esi, dword [edi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov esi, dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call dword [0x585534]
mov ecx, edi
call esi
jmp 0x45d68f
push 0x250
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00512700
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edx, dword [ebp + 8]
mov eax, esp
push ecx
push edx
lea ecx, [ebp - 0x3c]
mov dword [eax], 0x5ecffc
mov dword [eax + 4], 1
call fcn.0045cbb0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28c]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push ecx
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x298], eax
cmp eax, 0xffffffff
je 0x45d687
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
nop word [eax + eax]
mov ecx, 0x5ecfe4
lea eax, [ebp - 0x260]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45d516
test dx, dx
je 0x45d512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45d516
add eax, 4
add ecx, 4
test dx, dx
jne 0x45d4f0
xor eax, eax
jmp 0x45d51b
sbb eax, eax
or eax, 1
test eax, eax
je 0x45d61a
mov eax, 0x5ecfe8
lea ecx, [ebp - 0x260]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x45d556
test dx, dx
je 0x45d552
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x45d556
add ecx, 4
add eax, 4
test dx, dx
jne 0x45d530
xor eax, eax
jmp 0x45d55b
sbb eax, eax
or eax, 1
test eax, eax
je 0x45d61a
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x260]
mov edi, dword [ebp + 0xc]
sub esp, 8
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x290], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d581
sub ecx, dword [ebp - 0x290]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x2b4]
push edi
push esi
call fcn.0045cbb0
add esp, 0x10
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x290], eax
jb 0x45d5bb
mov ecx, dword [eax]
mov dword [ebp - 0x290], ecx
mov eax, dword [eax + 0x10]
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x1c], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x45d5f3
mov eax, dword [eax]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x585534]
mov ecx, dword [ebp + 0x34]
call esi
mov dword [edi + 0x24], eax
push dword [ebp - 0x294]
mov byte [ebp - 4], 3
push dword [ebp - 0x290]
call fcn.0045d3d0
add esp, 0x30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2b4]
call fcn.00417680
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45d4e0
mov eax, dword [ebp - 0x29c]
mov edi, dword [ebp + 0x34]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 8]
mov byte [ebp - 0x14], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
test edi, edi
je 0x45d6d3
mov esi, dword [edi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov esi, dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call dword [0x585534]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x45d687
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x3c]
call fcn.00417680
mov edi, dword [ebp + 0x34]
test edi, edi
je 0x45d6b3
mov esi, dword [edi]
lea eax, [ebp + 0x10]
cmp edi, eax
setne al
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx eax, al
push eax
call dword [0x585534]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050fd4b
mov esp, ebp
pop ebp
ret
call fcn.004f789a
call fcn.004f789a
int3