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

Disassembly:
push 0xffffffffffffffff
push 0x5fb0d5
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x6f1550]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6f1550]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c4]
mov esi, ecx
mov dword [esp + 0x2b8], 0
call fcn.005a2d4d
mov eax, dword [eax + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], eax
call fcn.00401a30
mov byte [esp + 0x2b8], 1
lea ecx, [esp + 0x34]
call fcn.00401a30
mov byte [esp + 0x2b8], 2
lea ecx, [esp + 0x38]
call fcn.00401a30
mov byte [esp + 0x2b8], 3
lea ecx, [esp + 0x14]
call fcn.00401a30
mov byte [esp + 0x2b8], 4
push 0x10000000
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2d4]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x80]
push eax
push ecx
mov dword [esp + 0x44], 0
call fcn.005ad653
lea edx, [esp + 0x38]
lea ecx, [ebp + 0x20]
push edx
call fcn.004044c0
mov ax, word [esp + 0x40]
test ax, ax
jne 0x46207a
mov dword [ebp + 0x24], 0x50
jmp 0x462080
movzx eax, ax
mov dword [ebp + 0x24], eax
lea edx, [esp + 0x30]
lea ecx, [ebp + 0x28]
push edx
call fcn.004044c0
lea eax, [esp + 0x34]
lea ecx, [ebp + 0x2c]
push eax
call fcn.004044c0
push 0x619774
lea ecx, [esp + 0x18]
call fcn.004297f0
lea edx, [esp + 0x14]
lea ecx, [ebp + 0x34]
push edx
call fcn.004044c0
lea ecx, [esp + 0x20]
xor edi, edi
call fcn.00401a30
mov byte [esp + 0x2b8], 5
lea ecx, [esp + 0x3c]
call fcn.00401a30
mov byte [esp + 0x2b8], 6
lea ecx, [esp + 0x28]
call fcn.00401a30
mov byte [esp + 0x2b8], 7
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4620fa
or edx, 0xffffffff
jmp 0x462125
push 0x619770
push ecx
call fcn.005c0219
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x462115
or edx, 0xffffffff
jmp 0x462125
sub eax, ecx
mov edx, eax
test edx, edx
jle 0x462125
mov dword [esp + 0x24], 1
mov eax, dword [ecx - 0xc]
sub eax, edx
sub eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0042eb10
mov byte [esp + 0x2b8], 8
push eax
lea ecx, [esp + 0x2c]
call fcn.004044c0
mov byte [esp + 0x2b8], 7
lea ecx, [esp + 0x18]
call fcn.00401aa0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx - 0xc]
lea eax, [edi + 1]
test eax, eax
jl 0x462189
cmp eax, edx
jg 0x462189
add eax, ecx
push 0x61976c
push eax
call fcn.005c0219
mov ecx, dword [esp + 0x30]
add esp, 8
test eax, eax
jne 0x462193
mov dword [esp + 0x18], 0xffffffff
jmp 0x46219e
sub eax, ecx
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4621e2
mov eax, dword [ecx - 0xc]
sub eax, edi
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
call fcn.0042eb10
mov byte [esp + 0x2b8], 9
push eax
lea ecx, [esp + 0x24]
call fcn.004044c0
mov byte [esp + 0x2b8], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x462226
mov ecx, dword [esp + 0x18]
sub ecx, edi
push ecx
push edi
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x34]
call fcn.004042e0
mov byte [esp + 0x2b8], 0xb
push eax
lea ecx, [esp + 0x24]
call fcn.004044c0
mov byte [esp + 0x2b8], 7
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jl 0x46237f
push 0x619768
push eax
call fcn.005c0219
add esp, 8
test eax, eax
je 0x46237f
sub eax, dword [esp + 0x20]
mov edi, eax
test edi, edi
jle 0x46237f
push edi
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x28]
call fcn.0042ebc0
mov byte [esp + 0x2b8], 0xd
push eax
lea ecx, [esp + 0x40]
call fcn.004044c0
mov byte [esp + 0x2b8], 7
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4622ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
push 0x619760
push ecx
call fcn.005c0d42
add esp, 8
test eax, eax
jne 0x462319
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
sub eax, edi
sub eax, 1
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x28]
call fcn.0042eb10
mov byte [esp + 0x2b8], 0xf
lea ecx, [ebp + 4]
push eax
call fcn.004044c0
mov byte [esp + 0x2b8], 7
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46237f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46237f
mov ecx, dword [esp + 0x3c]
push str.preview
push ecx
call fcn.005c0d42
add esp, 8
test eax, eax
jne 0x46237f
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
sub eax, edi
sub eax, 1
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
call fcn.0042eb10
mov byte [esp + 0x2b8], 0x11
mov eax, dword [eax]
push eax
call fcn.005c19ad
add esp, 4
cmp eax, 1
sete bl
mov byte [esp + 0x2b8], 7
lea ecx, [esp + 0x2c]
call fcn.00401aa0
test bl, bl
je 0x46237f
mov byte [esi + 0x1fc], 1
mov eax, dword [esp + 0x18]
test eax, eax
lea edi, [eax + 1]
jge 0x46215f
mov eax, dword [ebp + 4]
lea ebx, [ebp + 4]
push 0x612ba8
push eax
call fcn.005c0e71
add esp, 8
test eax, eax
sete al
test al, al
je 0x462426
mov ecx, dword [esp + 0x14]
push 0x2f
push ecx
call fcn.005c282c
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4623cd
sub eax, ecx
mov edi, eax
js 0x4623cd
add edi, 1
jmp 0x4623cf
xor edi, edi
push 0x3f
push ecx
call fcn.005c282c
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4623ed
sub eax, ecx
test eax, eax
jle 0x4623ed
sub eax, 1
jmp 0x4623f0
mov eax, dword [ecx - 0xc]
sub eax, edi
add eax, 1
push eax
push edi
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x20]
call fcn.004042e0
mov byte [esp + 0x2b8], 0x12
push eax
mov ecx, ebx
call fcn.004044c0
mov byte [esp + 0x2b8], 7
lea ecx, [esp + 0x2c]
call fcn.00401aa0
push ebx
lea ecx, [esi + 0x1f8]
call fcn.004044c0
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005c291f
add esp, 4
lea edi, [esi + 0x2a4]
call fcn.00454690
cmp dword [esp + 0x24], 0
je 0x46248d
movzx edx, word [esp + 0x50]
movzx ecx, ax
movzx eax, word [esp + 0x4e]
push ecx
movzx ecx, word [esp + 0x50]
push edx
movzx edx, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x52]
push ecx
movzx ecx, word [esp + 0x54]
push edx
push eax
push ecx
push str.session_d_d_d_d_d_d_d
jmp 0x4624ba
movzx ecx, word [esp + 0x4e]
movzx edx, ax
movzx eax, word [esp + 0x50]
push edx
movzx edx, word [esp + 0x50]
push eax
movzx eax, word [esp + 0x52]
push ecx
movzx ecx, word [esp + 0x52]
push edx
movzx edx, word [esp + 0x54]
push eax
push ecx
push edx
push str._session_d_d_d_d_d_d_d
push edi
call fcn.0040ada0
mov ecx, dword [esi + 0x28c]
add esp, 0x24
lea eax, [esp + 0x38]
push eax
call fcn.004044c0
mov ecx, dword [esi + 0x28c]
mov edx, dword [ebp + 0x24]
mov dword [ecx + 4], edx
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x18
push 0x612ba8
call fcn.00401c00
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call fcn.0045a420
mov byte [esp + 0x2b8], 0x13
mov ecx, dword [esi + 0x28c]
lea edx, [esp + 0x58]
add ecx, 0x14
push edx
call fcn.004044c0
mov ecx, dword [esi + 0x28c]
lea eax, [esp + 0x34]
add ecx, 0xc
push eax
call fcn.004044c0
mov ecx, dword [esi + 0x28c]
lea edx, [esp + 0x30]
add ecx, 8
push edx
call fcn.004044c0
mov ecx, dword [esi + 0x28c]
add ecx, 0x1c
push edi
call fcn.004044c0
mov ecx, dword [esi + 0x28c]
push 3
add ecx, 0x10
push 0x61dae4
call fcn.00401c00
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x34
push 0x612ba8
call fcn.00401c00
mov edi, dword [esp + 0x54]
cmp byte [edi + 0x89c], 0
je 0x4625ed
mov ecx, dword [esi + 0x28c]
lea eax, [edi + 0x8ac]
add ecx, 0x24
push eax
call fcn.004044c0
mov ecx, dword [esi + 0x28c]
mov edx, dword [edi + 0x8b0]
mov dword [ecx + 0x28], edx
mov ecx, dword [edi + 0x8a0]
mov eax, dword [esi + 0x28c]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x28c]
lea edx, [edi + 0x8a4]
add ecx, 0x2c
push edx
call fcn.004044c0
mov esi, dword [esi + 0x28c]
add esi, 0x30
lea eax, [edi + 0x8a8]
push eax
mov ecx, esi
call fcn.004044c0
jmp 0x462604
mov esi, dword [esi + 0x28c]
add esi, 0x24
push 0
push 0x612ba8
mov ecx, esi
call fcn.00401c00
add ebp, 8
mov ecx, ebp
call fcn.00403ef0
cmp byte [edi + 0x8c4], 0
mov byte [edi + 0x8cc], 0
je 0x46287e
lea ecx, [esp + 0x1ac]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x46287e
lea edx, [esp + 0x1ac]
push edx
lea ecx, [esp + 0x20]
call fcn.00401f00
mov byte [esp + 0x2b8], 0x14
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00401ce0
push 4
push str..srt
lea ecx, [esp + 0x24]
call fcn.00401ce0
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x6c]
push eax
push ecx
call esi
cmp eax, 0xffffffff
je 0x4626a7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.004048b0
mov byte [edi + 0x8cc], 1
lea eax, [esp + 0x1ac]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4626b1
sub eax, edx
push eax
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x24]
call fcn.00401c00
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00401ce0
push 2
push 0x61dc7c
lea ecx, [esp + 0x24]
call fcn.00401ce0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
push edx
call esi
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.00401a30
mov byte [esp + 0x2b8], 0x15
lea ecx, [esp + 0x18]
call fcn.00401a30
mov byte [esp + 0x2b8], 0x16
cmp edi, 0xffffffff
je 0x46284b
lea eax, [esp + 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x462839
jmp 0x462740
lea eax, [esp + 0x98]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x462750
sub eax, edx
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401c00
mov eax, dword [esp + 0x18]
mov esi, dword [eax - 0xc]
push 0x2e
push eax
call fcn.005c282c
add esp, 8
test eax, eax
jne 0x462788
or eax, 0xffffffff
jmp 0x46278c
sub eax, dword [esp + 0x18]
sub esi, eax
push esi
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
call fcn.0042eb10
mov byte [esp + 0x2b8], 0x17
push eax
lea ecx, [esp + 0x28]
call fcn.004044c0
mov byte [esp + 0x2b8], 0x16
lea ecx, [esp + 0x2c]
call fcn.00401aa0
mov eax, dword [esp + 0x24]
push str..srt
push eax
call fcn.005c0d42
add esp, 8
test eax, eax
je 0x4627ec
mov ecx, dword [esp + 0x24]
push str..sub
push ecx
call fcn.005c0d42
add esp, 8
test eax, eax
jne 0x462825
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x1b4]
push ecx
lea edx, [esp + 0x28]
push str._s_s_s
push edx
call fcn.0040ada0
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.004048b0
mov ecx, dword [esp + 0x54]
mov byte [ecx + 0x8cc], 1
lea edx, [esp + 0x6c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x462740
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x46284b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x2b8], 0x15
lea ecx, [esp + 0x18]
call fcn.00401aa0
mov byte [esp + 0x2b8], 0x14
lea ecx, [esp + 0x24]
call fcn.00401aa0
mov byte [esp + 0x2b8], 0x13
lea ecx, [esp + 0x1c]
call fcn.00401aa0
mov byte [esp + 0x2b8], 7
lea ecx, [esp + 0x58]
call fcn.00401aa0
mov byte [esp + 0x2b8], 6
lea ecx, [esp + 0x28]
call fcn.00401aa0
mov byte [esp + 0x2b8], 5
lea ecx, [esp + 0x3c]
call fcn.00401aa0
mov byte [esp + 0x2b8], 4
lea ecx, [esp + 0x20]
call fcn.00401aa0
mov byte [esp + 0x2b8], 3
lea ecx, [esp + 0x14]
call fcn.00401aa0
mov byte [esp + 0x2b8], 2
lea ecx, [esp + 0x38]
call fcn.00401aa0
mov byte [esp + 0x2b8], 1
lea ecx, [esp + 0x34]
call fcn.00401aa0
mov byte [esp + 0x2b8], 0
lea ecx, [esp + 0x30]
call fcn.00401aa0
mov dword [esp + 0x2b8], 0xffffffff
lea ecx, [esp + 0x2c0]
call fcn.00401aa0
mov eax, 1
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.005bf6a4
add esp, 0x2a8
ret 8