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

Disassembly:
push 0xffffffffffffffff
push 0x4f3786
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a8
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x8c8]
push 0x516a38
lea ecx, [esp + 0x28]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x8cc], ebp
call fcn.00402910
mov ecx, 0x186
xor eax, eax
lea edi, [esp + 0x2a0]
lea edx, [esp + 0x2a0]
push 0x30c
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov al, byte [esp + 0x2b]
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x38], al
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x50]
push ecx
push edx
mov byte [esp + 0x8c8], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x47d1c9
mov esi, dword [str..qmv_.m4v_.f4v_.tim_.swf_.csf_.scm_.ts_.tp_.mkv_.dat_.vob_.qt_.ram_.wav_.wmv_.asf_.rm_.rmvb_.mov_.avi_.mpg_.mpeg_.mpe_.3gp_.mp2_.mp4_.flv_._mv_.wm_.rp_.rpm_.rt_.rsc_.3gp2_.3gpp_.acc_.aif_.aifc_.aiff_.asx_.bik_.flc_.roq_.d2v_.dsa_.dss_.dsv_.m1v_.m2p_.m2v_.m4b_.mkv_.mod_.ogm_.pmp_.pm2_.pss_.m4p_.mv_.m2ts_.evo_.3g2_.wmp_.wm_.ivf_.rmm_.mjp_.pva_.rat_.dvd_.smk_.tpr_.vg2_.vid_.vp6_.vp7_.amv_.fli_.pmp2_.mts_.drc]
mov eax, dword [0x50d0e0]
cmp esi, ebp
mov dword [esp + 0x1c], eax
je 0x47cc2f
mov ecx, esi
shr ecx, 0x10
jne 0x47cbfd
and esi, 0xffff
lea ecx, [esp + 0x1c]
push esi
call fcn.00407b60
jmp 0x47cc2f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebp
je 0x47cc2f
push edi
lea ecx, [esp + 0x20]
call fcn.00402190
test eax, eax
je 0x47cc2f
mov ecx, dword [esp + 0x1c]
lea edx, [edi + edi]
push edx
lea eax, [edi + edi + 2]
push esi
push eax
push ecx
call fcn.00402060
add esp, 0x10
mov esi, dword [str..smv_.spx_.au_.flac_.ra_.amr_.m4a_.mpga_.mp5_.dsm_.mpa_.mac_.dts_.mpga_.wma_.mp3_.midi_.ac3_.aac_.ogg_.mid_.ape_.cda_.rmi_.tta_.tta]
mov edx, dword [0x50d0e0]
cmp esi, ebp
mov byte [esp + 0x8c0], 3
mov dword [esp + 0x20], edx
je 0x47cc96
mov eax, esi
shr eax, 0x10
jne 0x47cc64
and esi, 0xffff
lea ecx, [esp + 0x20]
push esi
call fcn.00407b60
jmp 0x47cc96
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebp
je 0x47cc96
push edi
lea ecx, [esp + 0x24]
call fcn.00402190
test eax, eax
je 0x47cc96
mov eax, dword [esp + 0x20]
lea ecx, [edi + edi]
push ecx
lea edx, [edi + edi + 2]
push esi
push edx
push eax
call fcn.00402060
add esp, 0x10
mov esi, dword [str..bmp_.gif_.jpg_.tif_.jpeg_.jpe_.pcd_.bnm_.qti.qtf_.qtif_.tif_.tiff_.tiff]
mov ecx, dword [0x50d0e0]
cmp esi, ebp
mov byte [esp + 0x8c0], 4
mov dword [esp + 0x18], ecx
je 0x47ccfd
mov edx, esi
shr edx, 0x10
jne 0x47cccb
and esi, 0xffff
lea ecx, [esp + 0x18]
push esi
call fcn.00407b60
jmp 0x47ccfd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebp
je 0x47ccfd
push edi
lea ecx, [esp + 0x1c]
call fcn.00402190
test eax, eax
je 0x47ccfd
mov edx, dword [esp + 0x18]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00402060
add esp, 0x10
mov eax, dword [ebx + 0xf0]
mov byte [esp + 0x8c0], 5
cmp eax, ebp
jne 0x47d0fc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x50d0e0]
lea ecx, [esp + 0x7c]
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x47cd82
lea edx, [esp + 0x7c]
shr edx, 0x10
jne 0x47cd48
xor eax, eax
lea ecx, [esp + 0x7c]
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.00407b60
jmp 0x47cd82
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebp
je 0x47cd82
push esi
lea ecx, [esp + 0x18]
call fcn.00402190
test eax, eax
je 0x47cd82
lea eax, [esi + esi]
lea ecx, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esi + esi + 2]
push ecx
push edx
push eax
call fcn.00402060
add esp, 0x10
mov ecx, dword [esp + 0x14]
push 0x510318
push ecx
mov byte [esp + 0x8c8], 6
call fcn.004dec69
add esp, 8
test eax, eax
je 0x47d0a5
mov edx, dword [esp + 0x14]
push 0x510310
push edx
call fcn.004dec69
add esp, 8
test eax, eax
je 0x47d0a5
mov al, byte [esp + 0x50]
test al, 6
jne 0x47cf0e
test al, 0x10
jne 0x47d017
mov eax, dword [esp + 0x8c8]
cmp dword [eax - 8], 3
jg 0x47ce0f
mov eax, dword [esp + 0x14]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x8c0], 5
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47d0d8
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x47d0d8
jmp 0x47d0c8
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
xor ecx, ecx
push 1
push ebp
push ecx
push eax
xor edi, edi
call fcn.004df990
add eax, esi
adc edx, edi
mov dword [esp + 0x4c], edx
js 0x47d092
jg 0x47ce40
cmp eax, 0x10001
jbe 0x47d092
mov eax, dword [0x50d0e0]
lea ecx, [esp + 0x7c]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x47cea9
lea edx, [esp + 0x7c]
shr edx, 0x10
jne 0x47ce6f
xor eax, eax
lea ecx, [esp + 0x7c]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00407b60
jmp 0x47cea9
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebp
je 0x47cea9
push esi
lea ecx, [esp + 0x14]
call fcn.00402190
test eax, eax
je 0x47cea9
lea eax, [esi + esi]
lea ecx, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esi + esi + 2]
push ecx
push edx
push eax
call fcn.00402060
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x8c0], 7
call fcn.00408c00
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharLowerW]
mov edx, dword [esp + 0x10]
push 0x2e
push edx
call fcn.004dec29
mov edx, dword [esp + 0x18]
add esp, 8
cmp eax, ebp
je 0x47cee7
sub eax, edx
sar eax, 1
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x47cf45
mov ecx, dword [0x50d0e4]
lea eax, [edx - 0xc]
cmp eax, ecx
je 0x47cf0e
add edx, 0xfffffff4
push edx
call ebx
test eax, eax
jg 0x47cf0e
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [0x50d0e4]
mov byte [esp + 0x8c0], 5
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x47d0d8
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x47d0d8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
jmp 0x47d0cf
mov eax, dword [edx - 8]
sub eax, ecx
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004071a0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c4], 8
call fcn.00402090
mov eax, dword [esp + 0x30]
mov ecx, dword [0x50d0e4]
mov byte [esp + 0x8c0], 7
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x47cf9e
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x47cf9e
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov ecx, 0x516194
test ecx, ecx
jne 0x47cfab
xor eax, eax
jmp 0x47cfb6
push 0x516194
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x516194
push eax
lea ecx, [esp + 0x18]
call fcn.00407f00
mov edx, dword [esp + 0x10]
push ebp
push edx
lea ecx, [esp + 0x24]
call fcn.00414af0
mov esi, eax
mov eax, dword [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00414af0
mov ecx, dword [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00414af0
cmp esi, 0xffffffff
jg 0x47d213
cmp edi, 0xffffffff
jg 0x47d213
cmp eax, 0xffffffff
jg 0x47d213
lea ecx, [esp + 0x10]
jmp 0x47d08d
mov edx, dword [0x50d0e0]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c8]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x50de74
push edx
mov byte [esp + 0x8d0], 9
call fcn.004074f0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2b0]
push eax
push ecx
call fcn.004dec69
add esp, 0x18
test eax, eax
je 0x47d089
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
push 1
mov dword [esp + 0x50], 0x5c
call fcn.00407f00
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.0040dfb0
lea ecx, [esp + 0x10]
call fcn.00402160
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c0], 5
call fcn.00402160
jmp 0x47d0d8
mov eax, dword [esp + 0x14]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x8c0], 5
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47d0d8
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x47d0d8
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47d0fc
mov edx, dword [esp + 0x34]
cmp dword [edx + 0xf0], ebp
je 0x47cd19
lea ecx, [esp + 0x38]
call fcn.004bce30
test eax, eax
jbe 0x47d1aa
mov ebx, dword [esp + 0x8d0]
mov esi, dword [esp + 0x8cc]
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + ebp*4]
lea ecx, [esp + 0x14]
push edx
call fcn.0040bd90
push ebx
push esi
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x8d0], 0xa
call fcn.0040bd90
mov ecx, dword [esp + 0x40]
call fcn.0047cb30
test eax, eax
je 0x47d187
mov ecx, dword [esi + 4]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x14]
mov edi, eax
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
push eax
call fcn.00407d70
push eax
push 0
push edi
mov ecx, esi
call fcn.00473300
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c0], 5
call fcn.00402160
lea ecx, [esp + 0x38]
inc ebp
call fcn.004bce30
cmp ebp, eax
jb 0x47d11b
lea ecx, [esp + 0x18]
call fcn.00402160
lea ecx, [esp + 0x20]
call fcn.00402160
lea ecx, [esp + 0x1c]
call fcn.00402160
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c0], 1
call fcn.0040dd70
lea ecx, [esp + 0x24]
call fcn.00402160
lea ecx, [esp + 0x8c8]
call fcn.00402160
xor eax, eax
mov ecx, dword [esp + 0x8b8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8b4
ret 0xc
mov esi, dword [esp + 0x8d0]
push ebp
push ebp
push 0x408
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
cmp eax, 0x64
jl 0x47d232
xor eax, eax
push eax
mov ecx, esi
call fcn.0048b0e0
lea ecx, [esp + 0x10]
call fcn.00402160
lea ecx, [esp + 0x14]
call fcn.00402160
lea ecx, [esp + 0x18]
call fcn.00402160
lea ecx, [esp + 0x20]
call fcn.00402160
lea ecx, [esp + 0x1c]
call fcn.00402160
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c0], 1
call fcn.0040dd70
lea ecx, [esp + 0x24]
call fcn.00402160
lea ecx, [esp + 0x8c8]
call fcn.00402160
mov eax, 1
jmp 0x47d1f8