Function at 0x472050
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bebf
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x5f11e4]
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.00473760
mov dword [ebp - 0x304], eax
test eax, eax
jne 0x4726a4
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.004feb64
add esp, 4
mov dword [ebp - 0x2f4], eax
test eax, eax
je 0x4720f0
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.0046ecd0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0045d750
mov esi, eax
add esp, 4
test esi, esi
jne 0x472158
push str.Calloc_failure__Failed_to_convert_string_to_utf16.
push 4
call fcn.0046dba0
add esp, 8
mov esi, 3
jmp 0x4725f8
push esi
lea ecx, [ebp - 0x40]
call fcn.0044bd60
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004730d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47218d
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044c9a0
push esi
call fcn.00518a05
add esp, 4
xor edx, edx
push dword [ebp - 0x2e0]
push ecx
xor ecx, ecx
call fcn.0045d490
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x2fc], ebx
cmp dword [ebp - 0x2e4], ebx
je 0x472474
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.00473370
mov ecx, eax
call fcn.004731f0
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4721f9
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0x5c405c
push dword [eax + ecx*4]
lea eax, [ebp - 0x88]
push eax
call fcn.00473430
push 0x5c6674
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
call fcn.0045ca50
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x472268
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47224b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044c9a0
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.0045b2a0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47227d
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044c9a0
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 0x4722b0
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.0044c9a0
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 0x4722e4
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0044c9a0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4722fa
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 0x47249c
nop
mov edx, 0x5c4cf8
lea ecx, [ebp - 0x2ac]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x472376
test ax, ax
je 0x472372
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x472376
add ecx, 4
add edx, 4
test ax, ax
jne 0x472350
xor eax, eax
jmp 0x47237b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47243b
mov ecx, 0x5c4f98
lea eax, [ebp - 0x2ac]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4723b6
test dx, dx
je 0x4723b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4723b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x472390
xor eax, eax
jmp 0x4723bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x47243b
test byte [ebp - 0x2d8], 0x10
jne 0x47243b
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp - 0x2ac], ax
je 0x4723ff
lea eax, [ebp - 0x2ac]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4723f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044c2c0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x300]
call fcn.00472f30
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47243b
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044c9a0
lea eax, [ebp - 0x2d8]
push eax
push esi
call edi
test eax, eax
jne 0x472340
call ebx
push esi
cmp eax, 0x12
jne 0x47248a
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2e4], 0
jne 0x4721d0
mov ebx, dword [ebp - 0x2fc]
mov edi, dword [ebp - 0x300]
mov esi, edi
cmp edi, ebx
je 0x4725f2
nop
cmp dword [esi + 0x14], 8
jb 0x4724c4
mov eax, dword [esi]
jmp 0x4724c6
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 0x4724a6
call ebx
push eax
push str.Error_while_iterating_through_slstore:_error_code__d.
push 4
call fcn.0046dba0
mov ebx, dword [ebp - 0x2fc]
add esp, 0xc
mov edi, dword [ebp - 0x300]
mov esi, 0x31c
jmp 0x4725f8
mov eax, esi
push eax
call fcn.0045d7b0
mov edi, eax
add esp, 4
test edi, edi
je 0x4725d2
cmp byte [edi], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x4724f4
xor ecx, ecx
jmp 0x472509
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472500
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x70]
call fcn.00448910
mov edx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
mov ebx, dword [edx + 4]
cmp eax, ebx
jae 0x47257a
mov eax, dword [edx]
lea ecx, [ebp - 0x70]
cmp eax, ecx
ja 0x47257a
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 0x472569
push 1
mov ecx, edx
call fcn.0044c0f0
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 0x4725a4
jmp 0x472598
cmp ebx, dword [edx + 8]
jne 0x47258e
push 1
mov ecx, edx
call fcn.0044c0f0
mov edx, dword [ebp - 0x2dc]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4725a4
lea eax, [ebp - 0x70]
push eax
call fcn.00448640
mov edx, dword [ebp - 0x2dc]
add dword [edx + 4], 0x18
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x4725c1
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00445e20
push edi
call fcn.00518a05
mov ebx, dword [ebp - 0x2fc]
add esp, 4
jmp 0x4725e1
push str.Failed_to_convert_utf16_to_utf8.
push 4
call fcn.0046dba0
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x472480
mov edi, dword [ebp - 0x300]
mov esi, dword [ebp - 0x304]
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x47260d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00445e20
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x472634
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044c9a0
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00472fe0
push dword [ebp - 0x2f4]
call fcn.0054b948
add esp, 4
mov dword [ebp - 0x2f4], 0
test edi, edi
je 0x4726a2
push dword [ebp - 0x2e0]
mov edx, ebx
push ecx
mov ecx, edi
call fcn.0045d490
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.0044c770
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.004feb45
mov esp, ebp
pop ebp
ret 4