Function at 0x411860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e15f
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x5aa464]
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 [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x420]
push 0x104
push eax
call esi
push 0x58e0b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4118c4
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5b0960], eax
jmp 0x4118c9
mov eax, dword [0x5b0960]
test eax, eax
je 0x4118d4
push 0x800
call eax
push 0x58d674
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x104
lea eax, [ebp - 0x218]
push eax
call esi
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x424], 0
xor eax, eax
movq qword [ebp - 0x42c], xmm0
push str._version.dll
lea ecx, [ebp - 0x538]
mov dword [ebp - 0x524], 7
mov dword [ebp - 0x528], 0
mov word [ebp - 0x538], ax
call fcn.00406720
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x520]
push 0xb
xor eax, eax
mov dword [ebp - 0x50c], 7
push str.ws2_32.dll
mov dword [ebp - 0x510], 0
mov word [ebp - 0x520], ax
call fcn.00406720
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x508]
push 8
xor eax, eax
mov dword [ebp - 0x4f4], 7
push str._sxs.dll
mov dword [ebp - 0x4f8], 0
mov word [ebp - 0x508], ax
call fcn.00406720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4f0]
push 0xb
xor eax, eax
mov dword [ebp - 0x4dc], 7
push str.dwmapi.dll
mov dword [ebp - 0x4e0], 0
mov word [ebp - 0x4f0], ax
call fcn.00406720
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4d8]
push 0xc
xor eax, eax
mov dword [ebp - 0x4c4], 7
push str.msimg32.dll
mov dword [ebp - 0x4c8], 0
mov word [ebp - 0x4d8], ax
call fcn.00406720
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c0]
push 9
xor eax, eax
mov dword [ebp - 0x4ac], 7
push str.d3d8.dll
mov dword [ebp - 0x4b0], 0
mov word [ebp - 0x4c0], ax
call fcn.00406720
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4a8]
push 0xc
xor eax, eax
mov dword [ebp - 0x494], 7
push str.ieframe.dll
mov dword [ebp - 0x498], 0
mov word [ebp - 0x4a8], ax
call fcn.00406720
mov byte [ebp - 4], 6
mov dword [ebp - 0x47c], 7
mov dword [ebp - 0x480], 0
push 0xc
xor eax, eax
lea ecx, [ebp - 0x490]
push str.ws2help.dll
mov word [ebp - 0x490], ax
call fcn.00406720
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x478]
push 0x12
xor eax, eax
mov dword [ebp - 0x464], 7
push str.WindowsCodecs.dll
mov dword [ebp - 0x468], 0
mov word [ebp - 0x478], ax
call fcn.00406720
mov dword [ebp - 4], 8
lea eax, [ebp - 0x460]
mov byte [ebp - 0x460], 0
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x460]
mov dword [ebp - 0x42c], 0
push eax
lea eax, [ebp - 0x538]
mov dword [ebp - 0x428], 0
push eax
mov dword [ebp - 0x424], 0
call fcn.00411e20
push fcn.00406470
push 9
push 0x18
lea eax, [ebp - 0x538]
mov byte [ebp - 4], 0xa
push eax
call fcn.0050996a
xor eax, eax
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], ax
cmp word [ebp - 0x218], ax
jne 0x411b5a
xor ecx, ecx
jmp 0x411b72
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411b63
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x444]
call fcn.00406720
mov byte [ebp - 4], 0xb
mov ebx, dword [ebp - 0x42c]
mov esi, ebx
mov edi, dword [ebp - 0x428]
cmp ebx, edi
je 0x411c45
nop
xor eax, eax
mov dword [ebp - 0x448], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x44c], 0
mov word [ebp - 0x45c], ax
call fcn.00406820
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x550]
call fcn.00411d40
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x411bf3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [ebp - 0x53c]
cmp eax, 8
jb 0x411c18
inc eax
lea ecx, [ebp - 0x550]
push eax
push dword [ebp - 0x550]
call fcn.00406e80
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x448]
cmp eax, 8
jb 0x411c3a
inc eax
lea ecx, [ebp - 0x45c]
push eax
push dword [ebp - 0x45c]
call fcn.00406e80
add esi, 0x18
cmp esi, edi
jne 0x411ba0
mov eax, dword [ebp - 0x430]
cmp eax, 8
jb 0x411c63
inc eax
lea ecx, [ebp - 0x444]
push eax
push dword [ebp - 0x444]
call fcn.00406e80
xor eax, eax
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], ax
test ebx, ebx
je 0x411cb7
push dword [ebp - 0x460]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.00411f00
mov ecx, dword [ebp - 0x424]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
call fcn.0040cd60
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.00509444
mov esp, ebp
pop ebp
ret