Function at 0x5207e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64b479
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a4
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esp
push 0x7c
mov dword [ebp - 4], 0
call fcn.00622acb
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x52082e
call fcn.004946a0
mov ecx, eax
jmp 0x520830
xor ecx, ecx
mov byte [ebp - 4], 0
mov dword [ebp - 0x44], ecx
call fcn.004947e0
mov ecx, dword [ebp - 0x44]
mov eax, dword [0x6fca90]
mov esi, dword [0x6fd568]
mov dword [ebp - 0x14], eax
lea ebx, [ecx + 0x60]
mov ecx, ebx
call fcn.00401070
test esi, esi
je 0x5208a7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5208a7
mov edi, dword [ebp - 0x14]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [ebx + 8], eax
je 0x5208a7
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x5208a7
mov ecx, dword [ebx + 8]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1c]
lea ecx, [edx + 0x14]
lea edx, [ebp - 0x44]
push edx
push eax
call fcn.005210c0
push 0x7c
call fcn.00622acb
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x5208d8
call fcn.004946a0
jmp 0x5208da
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [eax + 0x78], 2
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.004947e0
mov ecx, dword [ebp - 0x30]
mov eax, dword [0x6fca90]
mov esi, dword [0x6fd564]
mov dword [ebp - 0x14], eax
lea ebx, [ecx + 0x60]
mov ecx, ebx
call fcn.00401070
test esi, esi
je 0x52095b
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52095b
mov edi, dword [ebp - 0x14]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [ebx + 8], eax
je 0x52095b
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x52095b
mov ecx, dword [ebx + 8]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1c]
lea ecx, [edx + 0x14]
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.005210c0
mov edx, dword [ebp - 0x18]
mov al, byte [edx + 4]
test al, al
je 0x520a8d
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], esi
mov word [ebp - 0x38], si
mov eax, dword [edx + 8]
mov byte [ebp - 4], 3
cmp eax, esi
jne 0x520998
lea eax, [edx + 0xc]
mov edx, str._sq_.dt
test edx, edx
je 0x520a60
cmp eax, esi
je 0x520a60
push eax
lea ecx, [ebp - 0x50]
call fcn.00401ee0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x28]
call fcn.004027c0
push esi
push str._sq_.dt
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004027e0
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebx, [eax + edi + 2]
lea edi, [ebx + ebx]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
cmp edx, esi
mov dword [ebp - 0x3c], edx
je 0x520a45
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x50]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x28]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x3c]
push ebx
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00401070
mov ecx, dword [ebp - 0x3c]
cmp ecx, esi
mov eax, ecx
jne 0x520a69
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x4b0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x2c], ebx
jne 0x520a9e
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x484]
push 0x5f
push eax
call fcn.00609ba3
mov edi, eax
add esp, 8
cmp edi, esi
je 0x520c23
mov cx, word [edi + 2]
add edi, 2
push ecx
call fcn.0060c061
add esp, 4
test eax, eax
je 0x520c23
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
call fcn.00401f20
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 6
cmp eax, esi
jne 0x520af2
lea eax, [ebp - 0x24]
push 0x2e
push eax
call fcn.0060a17b
add esp, 8
cmp eax, esi
je 0x520c14
mov word [eax], si
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x520b12
lea eax, [ebp - 0x24]
push eax
call fcn.0060b6a9
mov ebx, eax
add esp, 4
cmp ebx, 2
jle 0x520c14
push 0x7c
call fcn.00622acb
mov ecx, eax
add esp, 4
mov dword [ebp - 0x40], ecx
cmp ecx, esi
mov byte [ebp - 4], 7
je 0x520b49
call fcn.004946a0
mov ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x520b4e
mov dword [ebp - 0x14], esi
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [ecx + 0x78], ebx
call fcn.004947e0
mov edi, 2
mov esi, dword [ebp - 0x18]
cmp edi, dword [esi + 0x1c]
jge 0x520b75
mov edx, dword [esi + 0x18]
mov eax, dword [edx + edi*4]
cmp ebx, dword [eax + 0x78]
jl 0x520b75
inc edi
jmp 0x520b5f
mov ebx, dword [esi + 0x1c]
add esi, 0x14
cmp edi, ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x40], ebx
push 0xffffffffffffffff
jl 0x520b98
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.00422a80
jmp 0x520bf9
lea edx, [ebx + 1]
mov ecx, esi
push edx
call fcn.00422a80
mov eax, dword [esi + 4]
mov ecx, 1
lea eax, [eax + ebx*4]
mov edx, ecx
dec ecx
test edx, edx
je 0x520bba
add eax, 4
jmp 0x520bae
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 4]
mov ecx, edi
lea ebx, [edi*4]
shl ecx, 0x1e
sub ecx, edi
add ecx, edx
lea edx, [ebx + eax]
shl ecx, 2
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
lea edx, [edi + ecx]
lea eax, [eax + edx*4]
push eax
call fcn.0060ac20
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, dword [esi + 4]
add ebx, ecx
push ebx
call fcn.0054c780
mov eax, dword [ebp - 0x1c]
mov edx, eax
dec eax
test edx, edx
mov dword [ebp - 0x1c], eax
je 0x520c12
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edi*4], ecx
inc edi
jmp 0x520bf9
xor esi, esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00401070
mov ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x4b0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x520a9e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x520a81