Function at 0x5310d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b3622
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], ecx
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x2a8]
call fcn.00531460
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2b0]
push edx
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x348
call fcn.00403670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.00405ef0
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x348
call fcn.00403b90
movzx eax, al
test eax, eax
je 0x531175
xor eax, eax
jmp 0x531443
push 0x7f3080
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x348
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00403a70
add esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 0x264], 0
push 0x24c
push 0
lea eax, [ebp - 0x260]
push eax
call fcn.007202b0
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00405e80
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0xffffffff
je 0x531297
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x26c], eax
push 0x7f308c
mov eax, dword [ebp - 0x26c]
push eax
call fcn.00723690
add esp, 8
test eax, eax
je 0x531226
push 0x7f3098
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.00723690
add esp, 8
test eax, eax
jne 0x53126e
mov edx, dword [ebp - 0x264]
and edx, 0x10
jne 0x53126e
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x278]
call fcn.004068d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
push ecx
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x34c
call fcn.00531ee0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00405ef0
lea edx, [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5311e3
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x280]
push edx
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x34c
call fcn.00531e40
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x288]
push eax
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x34c
call fcn.00531e10
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
call fcn.00533640
add esp, 0x10
mov dword [ebp - 0x270], 0
jmp 0x5312f8
mov eax, dword [ebp - 0x270]
add eax, 1
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x34c
call fcn.00531e70
cmp dword [ebp - 0x270], eax
jae 0x531417
mov ecx, dword [ebp - 0x270]
push ecx
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x34c
call fcn.00531eb0
push eax
lea edx, [ebp - 0x298]
push edx
mov ecx, dword [ebp - 0x2a8]
call fcn.00531820
push eax
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x364
call fcn.00532060
mov eax, dword [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x34c
call fcn.00531eb0
push eax
push 0x7f30a4
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x348
push ecx
lea edx, [ebp - 0x29c]
push edx
call fcn.00403a70
add esp, 0xc
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2b8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.004039c0
add esp, 0xc
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c0]
push ecx
mov edx, dword [ebp - 0x270]
push edx
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x34c
call fcn.00531eb0
mov ecx, eax
call fcn.00403670
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2a0]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
call fcn.00405ef0
jmp 0x5312e9
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x34c
call fcn.00531e70
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret