Function at 0x471770
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a57f
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x5df3f4]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x2dc], eax
call fcn.00472e80
mov dword [ebp - 0x304], eax
test eax, eax
jne 0x471dc4
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x300], edi
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 4], ebx
push 8
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2ec], ebx
mov dword [ebp - 0x2e8], ebx
mov dword [ebp - 0x2e4], ebx
call fcn.0050ada4
add esp, 4
mov dword [ebp - 0x2f4], eax
test eax, eax
je 0x471810
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x2f4]
mov dword [eax], ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x58], al
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0046e3f0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0045af40
mov esi, eax
add esp, 4
test esi, esi
jne 0x471878
push str.Calloc_failure__Failed_to_convert_string_to_utf16.
push 4
call fcn.0046cc00
add esp, 8
mov esi, 3
jmp 0x471d18
push esi
lea ecx, [ebp - 0x40]
call fcn.0044d0f0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004727f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4718ad
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044d810
push esi
call fcn.00524165
add esp, 4
xor edx, edx
push dword [ebp - 0x2e0]
push ecx
xor ecx, ecx
call fcn.0045ac80
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x2fc], ebx
cmp dword [ebp - 0x2e4], ebx
je 0x471b94
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
push 1
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00472a90
mov ecx, eax
call fcn.00472910
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x471919
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0x5b5b4c
push dword [eax + ecx*4]
lea eax, [ebp - 0x88]
push eax
call fcn.00472b50
push 0x5b73ec
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
call fcn.0045a630
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x471988
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47196b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044d810
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00459050
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47199d
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044d810
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4719d0
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.0044d810
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0x2e8]
dec eax
mov edx, dword [ebp - 0x2ec]
add ecx, eax
mov eax, dword [ebp - 0x2f0]
dec edx
and edx, ecx
mov esi, dword [eax + edx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x471a04
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0044d810
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x471a1a
mov esi, dword [esi]
xor eax, eax
mov ecx, 0
mov word [esi], ax
sub dword [ebp - 0x2e4], 1
mov eax, dword [ebp - 0x2e8]
cmove eax, ecx
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x2d8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x471bbc
nop
mov edx, 0x5b5680
lea ecx, [ebp - 0x2ac]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x471a96
test ax, ax
je 0x471a92
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x471a96
add ecx, 4
add edx, 4
test ax, ax
jne 0x471a70
xor eax, eax
jmp 0x471a9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x471b5b
mov ecx, 0x5b5c80
lea eax, [ebp - 0x2ac]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471ad6
test dx, dx
je 0x471ad2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471ad6
add eax, 4
add ecx, 4
test dx, dx
jne 0x471ab0
xor eax, eax
jmp 0x471adb
sbb eax, eax
or eax, 1
test eax, eax
je 0x471b5b
test byte [ebp - 0x2d8], 0x10
jne 0x471b5b
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp - 0x2ac], ax
je 0x471b1f
lea eax, [ebp - 0x2ac]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471b10
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044d430
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x300]
call fcn.00472650
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x471b5b
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044d810
lea eax, [ebp - 0x2d8]
push eax
push esi
call edi
test eax, eax
jne 0x471a60
call ebx
push esi
cmp eax, 0x12
jne 0x471baa
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2e4], 0
jne 0x4718f0
mov ebx, dword [ebp - 0x2fc]
mov edi, dword [ebp - 0x300]
mov esi, edi
cmp edi, ebx
je 0x471d12
nop
cmp dword [esi + 0x14], 8
jb 0x471be4
mov eax, dword [esi]
jmp 0x471be6
call dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
push eax
push str.ERROR:Error_while_iterating_through_slstore:_error_code__d
push 2
jmp 0x471bc6
call ebx
push eax
push str.Error_while_iterating_through_slstore:_error_code__d.
push 4
call fcn.0046cc00
mov ebx, dword [ebp - 0x2fc]
add esp, 0xc
mov edi, dword [ebp - 0x300]
mov esi, 0x31c
jmp 0x471d18
mov eax, esi
push eax
call fcn.0045afa0
mov edi, eax
add esp, 4
test edi, edi
je 0x471cf2
cmp byte [edi], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x471c14
xor ecx, ecx
jmp 0x471c29
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471c20
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x70]
call fcn.0044d570
mov edx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
mov ebx, dword [edx + 4]
cmp eax, ebx
jae 0x471c9a
mov eax, dword [edx]
lea ecx, [ebp - 0x70]
cmp eax, ecx
ja 0x471c9a
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], eax
cmp ebx, dword [edx + 8]
jne 0x471c89
push 1
mov ecx, edx
call fcn.004533a0
mov eax, dword [ebp - 0x2e0]
mov edx, dword [ebp - 0x2dc]
lea ecx, [eax + eax*2]
mov eax, dword [edx]
lea eax, [eax + ecx*8]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x471cc4
jmp 0x471cb8
cmp ebx, dword [edx + 8]
jne 0x471cae
push 1
mov ecx, edx
call fcn.004533a0
mov edx, dword [ebp - 0x2dc]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x471cc4
lea eax, [ebp - 0x70]
push eax
call fcn.0044d1e0
mov edx, dword [ebp - 0x2dc]
add dword [edx + 4], 0x18
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x471ce1
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0044ad40
push edi
call fcn.00524165
mov ebx, dword [ebp - 0x2fc]
add esp, 4
jmp 0x471d01
push str.Failed_to_convert_utf16_to_utf8.
push 4
call fcn.0046cc00
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x471ba0
mov edi, dword [ebp - 0x300]
mov esi, dword [ebp - 0x304]
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x471d2d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0044ad40
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x471d54
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044d810
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00472700
push dword [ebp - 0x2f4]
call fcn.0054145a
add esp, 4
mov dword [ebp - 0x2f4], 0
test edi, edi
je 0x471dc2
push dword [ebp - 0x2e0]
mov edx, ebx
push ecx
mov ecx, edi
call fcn.0045ac80
mov ecx, dword [ebp - 0x2f8]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.00453440
mov eax, esi
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.0050ad85
mov esp, ebp
pop ebp
ret 4