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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x678], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x18], eax
mov ebx, edx
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push eax
xor esi, esi
mov dword [esp + 0x14], ecx
push ebx
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, ebx
mov dword [esp + 0x14], eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417820
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
cmp eax, 0xffffffff
jle 0x41784a
cmp word [ebx + eax*2], 0x5c
je 0x41784a
xor ecx, ecx
mov word [ebx + eax*2], cx
dec eax
cmp eax, 0xffffffff
jg 0x417837
mov ebx, dword [ebp + 8]
nop dword [eax]
cmp dword [0x43bbe4], 0
jne 0x417a60
cmp dword [esp + 0x14], 0xffffffff
je 0x417a60
mov ecx, 0x43737c
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417897
test dx, dx
je 0x417893
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417897
add eax, 4
add ecx, 4
test dx, dx
jne 0x417871
xor eax, eax
jmp 0x41789c
sbb eax, eax
or eax, 1
test eax, eax
je 0x417a34
mov ecx, 0x437380
lea eax, [esp + 0x4c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4178d6
test dx, dx
je 0x4178d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4178d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4178b0
xor eax, eax
jmp 0x4178db
sbb eax, eax
or eax, 1
test eax, eax
je 0x417a34
test byte [esp + 0x20], 0x10
jne 0x417a34
lea edx, [esp + 0x270]
mov ecx, ebx
sub edx, ebx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x417900
lea edx, [esp + 0x4c]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417916
lea edi, [esp + 0x270]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417930
mov ecx, edx
lea eax, [esp + 0x270]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
lea eax, [esp + 0x270]
push eax
call edi
test byte [esp + 0x10], 1
je 0x41797b
cmp eax, 0xffffffff
je 0x41799c
test al, 0x10
jne 0x41799c
jmp 0x417a2d
cmp eax, 0xffffffff
je 0x417a2d
test al, 0x10
jne 0x417a2d
test bl, 1
je 0x41799c
test byte [esp + 0x10], 4
je 0x417a77
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x478]
sub edx, eax
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x4179b0
lea edx, [esp + 0x4c]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4179c6
lea edi, [esp + 0x478]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4179e0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x270]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x478]
push edi
push dword [esp + 0x14]
call fcn.00417330
add esp, 8
test eax, eax
je 0x417a28
mov esi, dword [esp + 0xc]
inc esi
mov dword [esp + 0xc], esi
jmp 0x417a31
cmp dword [edi], 0
je 0x417a9d
mov esi, dword [esp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417850
mov esi, dword [esp + 0xc]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
nop dword [eax]
mov ecx, dword [esp + 0x684]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x270]
push eax
push 0x163
push 0x44a060
call fcn.0041cd80
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [eax], 0
jmp 0x417a4b
or esi, 0xffffffff
jmp 0x417a4f