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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0ce2
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x5203c4]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x288], eax
test esi, esi
je 0x48a0e6
test eax, eax
je 0x48a0e6
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48a104
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489cf3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.00477ed0
lea ecx, [ebp - 0x268]
call fcn.0047fdf0
lea ecx, [ebp - 0x268]
call fcn.00489ad0
mov edi, dword [ebp - 0x268]
or ebx, 0xffffffff
cmp dword [edi - 0xc], 0
jne 0x489d3b
xor ebx, ebx
jmp 0x48a0c3
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48a10e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x26c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 1
jge 0x489d86
push 0x104
lea ecx, [ebp - 0x26c]
call fcn.00477120
mov esi, dword [ebp - 0x26c]
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
push esi
call fcn.004b59c3
add esp, 8
test eax, eax
js 0x48a118
cmp eax, dword [esi - 8]
jg 0x48a118
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x250
mov word [esi + eax*2], cx
lea eax, [ebp - 0x260]
push ecx
push eax
call fcn.004ad7b0
push str..lnk
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00475fa0
add esp, 0x18
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x280]
mov ecx, ebx
mov dword [ebp - 0x274], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x489e18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x274], 0xffffffff
jne 0x489e28
xor ebx, ebx
jmp 0x48a0a7
mov esi, dword [ebp - 0x274]
mov edi, edi
test byte [ebp - 0x260], 0x10
jne 0x48a079
push 0x4f98a0
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00475fa0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00475fa0
add esp, 0x18
mov edx, dword [ebp - 0x284]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489e91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48a104
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 5
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48a104
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x278], edi
mov byte [ebp - 4], 6
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48a104
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x27c], esi
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 7
je 0x489f11
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call fcn.00489720
add esp, 8
jmp 0x489f41
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004898c0
mov edi, dword [ebp - 0x278]
add esp, 0x10
mov esi, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x264]
mov ebx, dword [eax - 0xc]
test ebx, ebx
js 0x48a118
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
jge 0x489f75
push ebx
lea ecx, [ebp - 0x264]
call fcn.00477120
mov eax, dword [ebp - 0x264]
lea ecx, [ebx + 1]
push ecx
push eax
call fcn.004b5cec
mov eax, dword [ebp - 0x264]
add esp, 8
cmp ebx, dword [eax - 8]
jg 0x48a118
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp - 0x264]
mov word [eax + ebx*2], cx
lea ecx, [ebp - 0x264]
call fcn.0047fdf0
mov ecx, dword [ebp - 0x268]
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x489fd9
test dx, dx
je 0x489fd5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x489fd9
add eax, 4
add ecx, 4
test dx, dx
jne 0x489fb3
xor eax, eax
jmp 0x489fde
sbb eax, eax
or eax, 1
test eax, eax
jne 0x489ff8
push eax
push eax
push dword [ebp - 0x288]
push dword [ebp - 0x270]
call fcn.00489b30
add esp, 0x10
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48a016
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48a031
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x264]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a052
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x270]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a073
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x489e30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x26c]
mov ebx, 1
mov edi, dword [ebp - 0x268]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48a0c3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48a0e2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x48a0e8
xor eax, eax
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.004a8e4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00476460
push 0x80004005
call fcn.00476460
push 0x80070057
call fcn.00476460
int3