Function at 0x474430
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1050
call fcn.004d6340
push ebx
push ebp
mov ebp, dword [esp + 0x105c]
push esi
xor esi, esi
xor eax, eax
cmp ebp, esi
push edi
mov dword [esp + 0x18], eax
je 0x474cae
mov ebx, dword [esp + 0x1068]
cmp ebx, esi
je 0x474cae
mov edi, dword [esp + 0x106c]
cmp edi, 0x64
mov dword [esp + 0x10], edi
jl 0x474484
add edi, 0xffffff9c
mov eax, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
cmp edi, 9
je 0x47449c
cmp edi, 0x3b
je 0x47449c
cmp edi, 3
je 0x47449c
cmp edi, 0x35
jne 0x474560
cmp dword [0x59f5ac], esi
je 0x474560
mov eax, dword [0x5b568c]
mov dword [0x59f5ac], esi
cmp eax, esi
jne 0x47454b
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0xc50]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0xc50]
push ecx
call fcn.004d6713
add esp, 4
cmp word [esp + eax*2 + 0xc4e], 0x5c
je 0x47450e
lea edx, [esp + 0xc50]
push 0x598458
push edx
call fcn.004d62f1
add esp, 8
lea eax, [esp + 0xc50]
push str.Shlwapi.dll
push eax
call fcn.004d62f1
add esp, 8
lea ecx, [esp + 0xc50]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x5b568c], eax
je 0x47454b
push str.StrCmpLogicalW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5b5690], eax
push 0x5b52e0
call fcn.004743c0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
add esp, 4
cmp edi, 0x3c
ja case.0x474571.19
xor edx, edx
mov dl, byte [edi + 0x474d10]
jmp dword [edx*4 + 0x474cc0]
test eax, eax
je 0x474619
lea eax, [esp + 0x430]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x844]
push ecx
lea eax, [esp + 0xa50]
push edx
push eax
push ebp
call fcn.004d82a8
lea ecx, [esp + 0x64c]
lea edx, [esp + 0x23c]
push ecx
lea eax, [esp + 0x858]
push edx
lea ecx, [esp + 0xa64]
push eax
push ecx
push ebx
call fcn.004d82a8
lea edx, [esp + 0x458]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.004d62f1
lea ecx, [esp + 0x668]
lea edx, [esp + 0x258]
push ecx
push edx
call fcn.004d62f1
add esp, 0x38
lea eax, [esp + 0x228]
test edi, edi
push 0xffffffffffffffff
jne 0x47460d
push eax
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
push ecx
jmp 0x474911
lea edx, [esp + 0x24]
push edx
push 0xffffffffffffffff
jmp 0x474910
test edi, edi
push 0xffffffffffffffff
jne 0x474628
push ebx
push 0xffffffffffffffff
push ebp
jmp 0x474911
push ebp
push 0xffffffffffffffff
push ebx
jmp 0x474911
test eax, eax
je 0x4746b3
lea ecx, [esp + 0x430]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x844]
push edx
lea ecx, [esp + 0xa50]
push eax
push ecx
push ebp
call fcn.004d82a8
lea edx, [esp + 0x64c]
lea eax, [esp + 0x23c]
push edx
lea ecx, [esp + 0x858]
push eax
lea edx, [esp + 0xa64]
push ecx
push edx
push ebx
call fcn.004d82a8
mov eax, dword [0x5b52e0]
add esp, 0x28
test eax, eax
jne 0x4746cf
lea eax, [esp + 0x430]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004d62f1
lea edx, [esp + 0x640]
lea eax, [esp + 0x230]
push edx
push eax
call fcn.004d62f1
jmp 0x4746cc
lea ecx, [esp + 0x20]
push ebp
push ecx
call fcn.004d631b
lea edx, [esp + 0x230]
push ebx
push edx
call fcn.004d631b
add esp, 0x10
mov eax, dword [0x5b5690]
test eax, eax
je case.0x474571.19
cmp edi, 9
jne 0x4746ff
lea ecx, [esp + 0x228]
lea edx, [esp + 0x20]
push ecx
push edx
call eax
mov esi, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x228]
push ecx
push edx
call eax
mov esi, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov ecx, dword [ebp + 0x210]
mov edx, dword [ebx + 0x20c]
mov eax, dword [ebp + 0x20c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x210]
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esi, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov eax, dword [ebp + 0x214]
mov ecx, dword [ebx + 0x214]
mov ebp, dword [ebp + 0x218]
mov ebx, dword [ebx + 0x218]
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
jne 0x4747a6
test ebp, ebp
jne 0x4747a6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1050
ret 0xc
test ecx, ecx
jne 0x474ab7
test ebx, ebx
jne 0x474ab7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1050
ret 0xc
mov edx, dword [ebp + 0x208]
mov esi, dword [ebx + 0x208]
cmp esi, edx
pop edi
sbb eax, eax
pop esi
and eax, 2
pop ebp
dec eax
pop ebx
add esp, 0x1050
ret 0xc
lea eax, [esp + 0x430]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x844]
push ecx
lea eax, [esp + 0xa50]
push edx
push eax
push ebp
call fcn.004d82a8
lea ecx, [esp + 0x64c]
lea edx, [esp + 0x23c]
push ecx
lea eax, [esp + 0x858]
push edx
lea ecx, [esp + 0xa64]
push eax
push ecx
push ebx
call fcn.004d82a8
lea edx, [esp + 0x660]
lea eax, [esp + 0x458]
push edx
push eax
call fcn.004d7652
add esp, 0x30
test eax, eax
jne 0x4748c9
mov eax, dword [0x5b52e0]
test eax, eax
jne 0x47487f
lea ecx, [esp + 0x430]
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.004d62f1
lea eax, [esp + 0x640]
lea ecx, [esp + 0x230]
push eax
push ecx
call fcn.004d62f1
add esp, 0x10
mov eax, dword [0x5b5690]
test eax, eax
je case.0x474571.19
cmp edi, 3
jne 0x4748ad
lea edx, [esp + 0x228]
lea ecx, [esp + 0x20]
push edx
push ecx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x228]
push edx
push ecx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
cmp edi, 3
push 0xffffffffffffffff
jne 0x4748ed
lea edx, [esp + 0x63c]
push edx
call fcn.004d78fa
add esp, 4
push eax
lea eax, [esp + 0x438]
push 0xffffffffffffffff
push eax
jmp 0x474908
lea ecx, [esp + 0x434]
push ecx
call fcn.004d78fa
add esp, 4
lea edx, [esp + 0x63c]
push eax
push 0xffffffffffffffff
push edx
call fcn.004d78fa
add esp, 4
push eax
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov esi, eax
cmp esi, 2
jne 0x474936
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
cmp esi, 1
jne case.0x474571.19
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov esi, dword [ebp + 0x21c]
mov eax, dword [ebx + 0x21c]
cmp esi, eax
jne 0x474c9d
mov esi, dword [ebp + 0x220]
mov eax, dword [ebx + 0x220]
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov esi, dword [ebp + 0x220]
mov eax, dword [ebx + 0x220]
cmp esi, eax
jne 0x474c9d
mov esi, dword [ebp + 0x21c]
mov eax, dword [ebx + 0x21c]
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov ecx, dword [ebp + 0x220]
cmp ecx, 1
jg 0x4749c3
mov ecx, 1
mov eax, dword [ebp + 0x21c]
cdq
idiv ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [0x55270c]
call fcn.004d6118
mov esi, eax
mov eax, dword [ebx + 0x220]
cmp eax, 1
mov ecx, eax
jg 0x4749fb
mov ecx, 1
mov eax, dword [ebx + 0x21c]
cdq
idiv ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [0x55270c]
call fcn.004d6118
cmp esi, eax
jne 0x474a39
push 5
push ebx
push ebp
call fcn.00474430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
xor ecx, ecx
cmp esi, eax
setge cl
pop edi
lea ecx, [ecx + ecx - 1]
mov esi, ecx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov esi, dword [ebp + 0x224]
mov eax, dword [ebx + 0x224]
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov esi, dword [ebp + 0x228]
mov eax, dword [ebx + 0x228]
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov edx, dword [ebp + 0x20c]
mov eax, dword [ebp + 0x210]
mov ecx, dword [ebx + 0x20c]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x210]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esi, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov eax, dword [ebp + 0x214]
mov ecx, dword [ebx + 0x214]
mov ebp, dword [ebp + 0x218]
mov ebx, dword [ebx + 0x218]
test eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
jne 0x474b16
test ebp, ebp
jne 0x474b16
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1050
ret 0xc
test ecx, ecx
jne 0x474b30
test ebx, ebx
jne 0x474b30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1050
ret 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esi, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov ecx, dword [ebx + 0x208]
mov esi, dword [ebp + 0x208]
cmp esi, ecx
pop edi
sbb eax, eax
pop esi
and eax, 2
pop ebp
dec eax
pop ebx
add esp, 0x1050
ret 0xc
mov esi, dword [ebx + 0x21c]
mov eax, dword [ebp + 0x21c]
cmp esi, eax
jne 0x474c9d
mov esi, dword [ebx + 0x220]
mov eax, dword [ebp + 0x220]
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov esi, dword [ebx + 0x220]
mov eax, dword [ebp + 0x220]
cmp esi, eax
jne 0x474c9d
mov esi, dword [ebx + 0x21c]
mov eax, dword [ebp + 0x21c]
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov ecx, dword [ebp + 0x21c]
cmp ecx, 1
jg 0x474be2
mov ecx, 1
mov eax, dword [ebp + 0x220]
cdq
idiv ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [0x55270c]
call fcn.004d6118
mov esi, eax
mov eax, dword [ebx + 0x21c]
cmp eax, 1
mov ecx, eax
jg 0x474c1a
mov ecx, 1
mov eax, dword [ebx + 0x220]
cdq
idiv ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [0x55270c]
call fcn.004d6118
cmp esi, eax
jne 0x474c58
push 6
push ebx
push ebp
call fcn.00474430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
xor edx, edx
cmp esi, eax
setge dl
pop edi
lea edx, [edx + edx - 1]
mov esi, edx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov esi, dword [ebx + 0x224]
mov eax, dword [ebp + 0x224]
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
mov esi, dword [ebx + 0x228]
mov eax, dword [ebp + 0x228]
sub esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1050
ret 0xc