Function at 0x408c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522243
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x574464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x420]
push 0x104
push eax
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408cc2
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x579990], eax
jmp 0x408cc7
mov eax, dword [0x579990]
test eax, eax
je 0x408cd2
push 0x800
call eax
push 0x55ddf8
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x104
lea eax, [ebp - 0x218]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x408d15
xor ecx, ecx
jmp 0x408d2f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408d20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405bd0
push 0xc
push str._version.dll
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x408d63
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x408d91
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x408dbb
xor ecx, ecx
jmp 0x408dd3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408dc4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405bd0
push 0xb
push str.ws2_32.dll
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 1
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x408e07
mov eax, dword [eax]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x408e2f
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x408e59
xor ecx, ecx
jmp 0x408e71
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408e62
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405bd0
push 8
push str._sxs.dll
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 2
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x408ea5
mov eax, dword [eax]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x408ecd
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x408ef7
xor ecx, ecx
jmp 0x408f0f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408f00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405bd0
push 0xb
push str.dwmapi.dll
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 3
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x408f43
mov eax, dword [eax]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x408f6b
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x408f95
xor ecx, ecx
jmp 0x408faf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408fa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405bd0
push 0xc
push str.msimg32.dll
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 4
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x408fe3
mov eax, dword [eax]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40900b
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x409035
xor ecx, ecx
jmp 0x40904f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409040
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405bd0
push 0xa
push str.d3d8.dll_
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 5
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x409083
mov eax, dword [eax]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4090ab
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x4090d5
xor ecx, ecx
jmp 0x4090ef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4090e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405bd0
push 0xc
push str.ieframe.dll
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 6
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x409123
mov eax, dword [eax]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40914b
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x409175
xor ecx, ecx
jmp 0x40918f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409180
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405bd0
push 0xc
push str.ws2help.dll
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 7
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x4091c3
mov eax, dword [eax]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4091eb
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
cmp word [ebp - 0x218], ax
jne 0x409215
xor ecx, ecx
jmp 0x40922f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409220
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.00405bd0
push 0x12
push str.WindowsCodecs.dll
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 8
call fcn.004055e0
cmp dword [eax + 0x14], 8
jb 0x409263
mov eax, dword [eax]
push eax
call esi
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x409284
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00405d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e06c8
mov esp, ebp
pop ebp
ret