Function at 0x50a69d
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x86ccc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
inc dword [esi + 0x514]
call fcn.00830530
mov eax, dword [0x98b454]
mov dword [esp + 0x34], eax
xor ebx, ebx
push 0x1072
lea ecx, [esp + 0x38]
mov dword [esp + 0x264], ebx
call fcn.008325e8
mov ecx, dword [0x98b454]
mov dword [esp + 0x2c], ecx
push 0x1073
lea ecx, [esp + 0x30]
mov byte [esp + 0x264], 1
call fcn.008325e8
lea edi, [esi + 0x478]
lea ecx, [esi + 0x14c]
push edi
call fcn.0082e99c
push edi
lea ecx, [esp + 0x14]
call fcn.00831c58
mov edx, dword [esi + 0x168]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x147
push edx
mov byte [esp + 0x270], 2
call ebp
cmp eax, ebx
jl 0x50a74c
cmp eax, dword [esi + 0x488]
jge 0x50a74c
mov ecx, dword [esi + 0x498]
lea edx, [ecx + eax*4]
lea ecx, [esp + 0x10]
push edx
call fcn.00832032
jmp 0x50a823
lea ecx, [esp + 0x10]
call fcn.00826255
lea ecx, [esp + 0x10]
call fcn.00826346
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x50a823
push eax
mov eax, dword [esi + 0x168]
push 0xffffffffffffffff
push 0x158
push eax
call ebp
mov ecx, dword [esi + 0x488]
cmp eax, ebx
jl 0x50a78c
cmp eax, ecx
jge 0x50a790
jmp 0x50a734
cmp eax, ecx
jl 0x50a7c3
push ebx
push eax
mov eax, dword [esi + 0x168]
push 0x144
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x47c]
mov edx, dword [esi + 0x168]
push ecx
push eax
push 0x14a
push edx
call ebp
push ebx
push eax
push 0x14e
jmp 0x50a81a
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x47c]
mov edx, dword [esi + 0x168]
push ecx
push eax
push 0x14a
push edx
call ebp
push ebx
push eax
mov eax, dword [esi + 0x168]
push 0x14e
push eax
call ebp
mov ecx, dword [esi + 0x168]
push ebx
push ebx
push 0x146
push ecx
call ebp
cmp eax, 0xf
jle 0x50a823
mov edx, dword [esi + 0x168]
push ebx
push ebx
push 0x146
push edx
call ebp
dec eax
push ebx
push eax
push 0x144
mov eax, dword [esi + 0x168]
push eax
call ebp
push 0x92edb8
push 0x95b5d8
lea ecx, [esp + 0x18]
call fcn.00825953
push 1
push 0x93a338
lea ecx, [esp + 0x18]
call fcn.00825d31
cmp eax, ebx
jle 0x50a86a
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.0082574c
push 1
push 0x93a338
lea ecx, [esp + 0x18]
call fcn.00825d31
cmp eax, ebx
jg 0x50a84a
mov ecx, dword [0x98b454]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x264], 3
call fcn.00832032
push 0x92edb8
lea ecx, [esp + 0x28]
call fcn.008322dc
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.005fddee
add esp, 0xc
test eax, eax
jne 0x50a90a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
mov ecx, dword [edx - 8]
sub eax, ecx
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00825bb9
mov edx, dword [esi + 0x498]
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov eax, dword [edx]
mov byte [esp + 0x264], 4
push eax
push 0x92ecec
push ecx
call fcn.00826097
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 3
call fcn.00831eeb
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x24]
push edx
call fcn.00832032
push 0x92edb8
lea ecx, [esp + 0x28]
call fcn.008322dc
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.005fddee
add esp, 0xc
test eax, eax
jne 0x50a999
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
mov ecx, dword [edx - 8]
sub eax, ecx
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00825bb9
mov edx, dword [esi + 0x498]
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov eax, dword [edx + 4]
mov byte [esp + 0x264], 5
push eax
push 0x92ecec
push ecx
call fcn.00826097
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 3
call fcn.00831eeb
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], ebx
jne 0x50a9b5
mov eax, dword [esi + 0x498]
lea ecx, [esp + 0x10]
add eax, 8
push eax
call fcn.00832032
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi]
push ecx
push edx
call fcn.005fd3f1
add esp, 8
cmp eax, ebx
jne 0x50aa0c
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x52]
mov word [esp + 0x50], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x54]
push 0x19
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x50aa0c
push 0x92f588
lea ecx, [esp + 0x14]
call fcn.008322dc
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x14]
call fcn.008322dc
lea edx, [esi + 0x44c]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00831c58
mov eax, dword [esi + 0x12c]
push ebx
push ebx
push 0x147
push eax
mov byte [esp + 0x270], 6
call ebp
mov edi, eax
mov eax, dword [0x9dce80]
cmp eax, ebx
je 0x50aa5d
push edi
push str.CSDDiskScanDlg::Scan_iFileSel__d_
push str.DiskScan
push 4
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
cmp edi, ebx
jl 0x50aa7c
cmp edi, 0xf
jge 0x50aa7c
mov ecx, dword [edi*8 + 0x95b09c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00832082
jmp 0x50ac67
lea ecx, [esp + 0x18]
call fcn.00826255
lea ecx, [esp + 0x18]
call fcn.00826346
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], ebx
je 0x50ac67
mov edx, dword [esi + 0x12c]
push eax
push 0xffffffffffffffff
push 0x158
push edx
call ebp
cmp eax, ebx
jl 0x50aacb
cmp eax, 0xf
jge 0x50aad4
mov eax, dword [eax*8 + 0x95b09c]
lea ecx, [esp + 0x18]
push eax
call fcn.00832082
jmp 0x50ac67
cmp eax, 0xf
jl 0x50ab70
mov ecx, dword [esi + 0x12c]
push ebx
push eax
push 0x144
push ecx
call ebp
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.00617650
lea eax, [esp + 0x28]
push ebx
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x26c], 7
call fcn.0048c110
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x18]
push edx
call fcn.00832082
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00511b00
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x12c]
push eax
push 0xf
push 0x14a
push ecx
call ebp
mov edx, dword [esi + 0x12c]
push ebx
push eax
push 0x14e
push edx
call ebp
lea ecx, [esp + 0x1c]
call fcn.00831eeb
mov byte [esp + 0x260], 6
lea ecx, [esp + 0x14]
jmp 0x50ac62
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
call fcn.00617650
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x26c], 8
call fcn.0048c110
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x18]
push eax
call fcn.00832082
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0050a580
mov edi, eax
mov eax, dword [esp + 0x28]
cmp edi, 0xffffffff
je 0x50abc2
cmp eax, ebx
je 0x50ac10
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00511b00
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x12c]
push ecx
push 0xffffffffffffffff
push 0x158
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x50ac07
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x12c]
push eax
push 0xf
push 0x14a
push ecx
call ebp
mov edi, eax
lea ecx, [esp + 0x14]
call fcn.00831eeb
mov edx, dword [esi + 0x12c]
push ebx
push edi
push 0x14e
push edx
call ebp
mov eax, dword [esi + 0x12c]
push ebx
push ebx
push 0x146
push eax
call ebp
cmp eax, 0x19
jle 0x50ac56
mov ecx, dword [esi + 0x12c]
push ebx
push ebx
push 0x146
push ecx
call ebp
mov edx, dword [esi + 0x12c]
dec eax
push ebx
push eax
push 0x144
push edx
call ebp
mov byte [esp + 0x260], 6
lea ecx, [esp + 0x1c]
call fcn.00617ec0
mov eax, dword [esp + 0x28]
and eax, 1
mov dword [esp + 0x4c], eax
je 0x50ac7a
mov dword [esi + 0x444], ebx
mov edi, dword [esi + 0x444]
push 0x427
mov ecx, esi
call fcn.00831156
mov eax, dword [eax + 0x1c]
push ebx
push edi
push 0xf1
push eax
call ebp
cmp dword [0x9dce80], ebx
je 0x50acbf
mov ecx, dword [esp + 0x18]
push ecx
push str.CSDDiskScanDlg::Scan_strFile_s
push str.DiskScan
push 4
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0082aad0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x264], 9
call fcn.00831c58
lea ecx, [esp + 0x20]
mov byte [esp + 0x260], 0xa
call fcn.00832497
push 0x944f48
lea ecx, [esp + 0x24]
call fcn.00832463
mov edi, eax
cmp edi, ebx
jl 0x50adb5
mov bl, 0xb
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.00825c35
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
mov byte [esp + 0x260], bl
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
sub eax, edi
dec eax
push eax
push edx
call fcn.00825bb9
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], 0xc
call fcn.00832032
lea ecx, [esp + 0x30]
mov byte [esp + 0x260], bl
call fcn.00831eeb
lea ecx, [esp + 0x14]
call fcn.00826346
lea ecx, [esp + 0x14]
call fcn.00826255
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x50ad8a
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.0082ada5
push 0x944f48
lea ecx, [esp + 0x24]
call fcn.00832463
lea ecx, [esp + 0x14]
mov edi, eax
mov byte [esp + 0x260], 0xa
call fcn.00831eeb
test edi, edi
jge 0x50ad09
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.00826346
lea ecx, [esp + 0x20]
call fcn.00826255
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], ebx
je 0x50ade3
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.0082ada5
push 0x9b5220
lea ecx, [esp + 0x20]
call fcn.00831f5f
push 0x9b5220
lea ecx, [esp + 0x1c]
mov byte [esp + 0x264], 0xd
call fcn.00832082
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ebx
jle 0x50aec1
mov bl, 0xe
mov eax, dword [esp + 0x3c]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x20]
call fcn.00832032
push 0x944f0c
lea ecx, [esp + 0x20]
call fcn.00832463
test eax, eax
jge 0x50ae92
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push 0x2a
push eax
call fcn.008256ea
push 0x2a
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x26c], bl
call fcn.00825688
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x264], 0xf
call fcn.00832032
lea ecx, [esp + 0x30]
mov byte [esp + 0x260], bl
call fcn.00831eeb
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 0xd
call fcn.00831eeb
test edi, edi
jle 0x50aea4
push 0x92f588
lea ecx, [esp + 0x1c]
call fcn.008322dc
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x18]
push edx
call fcn.00832318
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
jl 0x50ae17
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 0xa
call fcn.00831eeb
lea ecx, [esp + 0x20]
mov byte [esp + 0x260], 9
call fcn.00831eeb
lea ecx, [esp + 0x38]
mov byte [esp + 0x260], 6
call fcn.0082ab03
mov eax, dword [esp + 0x268]
mov dword [esp + 0x1c], ebx
dec eax
mov dword [esp + 0x14], ebx
je 0x50af13
dec eax
jne 0x50af1b
mov dword [esp + 0x14], 1
jmp 0x50af1b
mov dword [esp + 0x1c], 1
cmp dword [esi + 0x528], ebx
je 0x50af4c
mov ecx, dword [esi + 0x530]
cmp ecx, ebx
je 0x50af4c
call fcn.00654f30
test eax, eax
je 0x50af4c
mov ecx, dword [esi + 0x530]
call fcn.00654df0
mov ecx, dword [esi + 0x530]
call fcn.00654eb0
mov eax, dword [esi + 0x78]
push ebx
push ebx
push 0x1009
push eax
call ebp
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x4bc]
call fcn.00512400
cmp dword [esi + 0x518], ebx
je 0x50b08e
mov ecx, dword [esi + 0x1c]
push ebx
push 0x12c
push 0x64
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0x444]
xor edx, edx
mov dword [esp + 0x3c], edx
xor edi, edi
mov dword [esp + 0x40], edx
cmp eax, edi
mov ebx, 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edx
je 0x50b02f
mov eax, dword [esi + 0xb4]
push edi
push edi
push 0x147
push eax
call ebp
test eax, eax
jl 0x50b006
mov ecx, dword [esi + 0xb4]
push edi
push eax
push 0x150
push ecx
call ebp
test eax, eax
jl 0x50b006
cmp eax, dword [esi + 0x53c]
jge 0x50b006
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x538]
xor ebx, ebx
lea ecx, [eax + edx*4]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0xf0]
push 0
push 0
push 0x147
push ecx
call ebp
test eax, eax
jl 0x50b02f
mov edx, dword [esi + 0xf0]
push 0
push eax
push 0x150
push edx
call ebp
mov edi, eax
mov eax, dword [esi + 0x518]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x38]
push edi
mov dword [eax + 0x64], ecx
mov eax, dword [esi + 0x5d8]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x444]
push ebx
push ecx
mov ecx, dword [esi + 0x448]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x514]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x518]
call fcn.00512930
push 1
mov ecx, esi
call fcn.0050a450
mov ecx, esi
call fcn.005113b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x260], 3
call fcn.00831eeb
lea ecx, [esp + 0x24]
mov byte [esp + 0x260], 2
call fcn.00831eeb
lea ecx, [esp + 0x10]
mov byte [esp + 0x260], 1
call fcn.00831eeb
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 0
call fcn.00831eeb
lea ecx, [esp + 0x34]
mov dword [esp + 0x260], 0xffffffff
call fcn.00831eeb
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x254
ret 4