Function at 0x100052b0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x654
lea eax, [esp + 0x550]
push 0
push 0x24
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x100052e0
lea ecx, [esp + 0x550]
push ecx
push 0x24
call fcn.100059f0
add esp, 8
push ebx
push ebp
push esi
lea edx, [esp + 0x55c]
push edi
push edx
lea eax, [esp + 0x118]
push str._sinf
push eax
call fcn.100065c0
mov ebx, dword [esp + 0x674]
lea ecx, [esp + 0x120]
push ebx
push ecx
lea edx, [esp + 0x36c]
push str._s_s
push edx
call fcn.100065c0
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x1c
lea eax, [esp + 0x218]
lea ecx, [esp + 0x358]
push eax
push ecx
call ebp
mov edi, dword [esp + 0x66c]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000540e
lea edx, [esp + 0x244]
lea eax, [esp + 0x114]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call fcn.100065c0
lea edx, [esp + 0x46c]
push 0
push edx
lea eax, [esp + 0x28]
push edi
push eax
call fcn.100051c0
add esp, 0x20
test eax, eax
jbe 0x10005395
lea ecx, [esp + 0x10]
push ecx
call fcn.10005650
add esp, 4
lea edx, [esp + 0x218]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1000540e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000540e
lea eax, [esp + 0x244]
lea ecx, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
call fcn.100065c0
lea eax, [esp + 0x46c]
push 0
push eax
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.100051c0
add esp, 0x20
test eax, eax
jbe 0x100053fb
lea edx, [esp + 0x10]
push edx
call fcn.10005650
add esp, 4
lea eax, [esp + 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100053a8
lea ecx, [esp + 0x560]
lea edx, [esp + 0x114]
push ecx
push str._sinfother
push edx
call fcn.100065c0
lea eax, [esp + 0x120]
push ebx
push eax
lea ecx, [esp + 0x36c]
push str._s_s
push ecx
call fcn.100065c0
add esp, 0x1c
lea edx, [esp + 0x218]
lea eax, [esp + 0x358]
push edx
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x10005524
lea ecx, [esp + 0x244]
lea edx, [esp + 0x114]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.100065c0
lea ecx, [esp + 0x46c]
push 0
push ecx
lea edx, [esp + 0x28]
push edi
push edx
call fcn.100051c0
add esp, 0x20
test eax, eax
jbe 0x100054ab
lea eax, [esp + 0x10]
push eax
call fcn.10005650
add esp, 4
lea ecx, [esp + 0x218]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10005524
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10005524
lea edx, [esp + 0x244]
lea eax, [esp + 0x114]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call fcn.100065c0
lea edx, [esp + 0x46c]
push 0
push edx
lea eax, [esp + 0x28]
push edi
push eax
call fcn.100051c0
add esp, 0x20
test eax, eax
jbe 0x10005511
lea ecx, [esp + 0x10]
push ecx
call fcn.10005650
add esp, 4
lea edx, [esp + 0x218]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100054be
lea eax, [esp + 0x560]
lea ecx, [esp + 0x114]
push eax
push str._sinfinternet
push ecx
call fcn.100065c0
lea edx, [esp + 0x120]
push ebx
push edx
lea eax, [esp + 0x36c]
push str._s_s
push eax
call fcn.100065c0
add esp, 0x1c
lea ecx, [esp + 0x218]
lea edx, [esp + 0x358]
push ecx
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x10005638
lea eax, [esp + 0x244]
lea ecx, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
call fcn.100065c0
lea eax, [esp + 0x46c]
push 0
push eax
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.100051c0
add esp, 0x20
test eax, eax
jbe 0x100055c1
lea edx, [esp + 0x10]
push edx
call fcn.10005650
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x218]
push eax
push esi
call ebx
test eax, eax
je 0x10005638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10005638
lea ecx, [esp + 0x244]
lea edx, [esp + 0x114]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.100065c0
lea ecx, [esp + 0x46c]
push 0
push ecx
lea edx, [esp + 0x28]
push edi
push edx
call fcn.100051c0
add esp, 0x20
test eax, eax
jbe 0x10005629
lea eax, [esp + 0x10]
push eax
call fcn.10005650
add esp, 4
lea ecx, [esp + 0x218]
push ecx
push esi
call ebx
test eax, eax
jne 0x100055d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x654
ret