Function at 0x408070
Capabilities:
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440412
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x45410c]
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 ebx, ecx
mov dword [ebp - 0x448], ebx
push 0x800
call dword [0x4540d0]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00427180
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40816e
push 0x44c590
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042bfd3
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408103
sub ecx, edx
mov dword [ebp - 0x428], str.version.dll
sar ecx, 1
lea ebx, [ebp - 0x218]
mov edi, 0x104
mov dword [ebp - 0x424], str.cabinet.dll
xor esi, esi
sub edi, ecx
lea ebx, [ebx + ecx*2]
jmp 0x408140
push dword [ebp + esi*4 - 0x428]
push edi
push ebx
call fcn.0042c048
add esp, 0xc
test eax, eax
jne 0x408162
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc esi
cmp esi, 2
jb 0x408140
mov ebx, dword [ebp - 0x448]
push 0
push 0x4ff
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x400
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push 0x400
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 0x34
lea eax, [ebp - 0x48c]
mov dword [ebp - method.eset::CFileVersionInfo.virtual_0], vtable.eset::CFileVersionInfo.0
push 0
push eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x454], 0
call fcn.00427180
push dword [ebp - 0x458]
call fcn.00428d79
add esp, 0x10
mov dword [ebp - 0x458], 0
mov dword [ebp - 4], 0
call fcn.00404bb0
mov esi, eax
test esi, esi
je 0x4089d7
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4089e1
lock inc dword [esi + 0x14]
lea eax, [esi + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44c], esi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x408245
push 0x104
lea ecx, [ebp - 0x44c]
call fcn.00405fc0
mov esi, dword [ebp - 0x44c]
cmp dword [esi - 8], 0x104
jl 0x4089f2
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
push eax
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4083f9
push esi
lea ecx, [ebp - 0x490]
call fcn.00406a10
test eax, eax
je 0x4083bd
mov edi, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
mov edx, 1
mov eax, dword [edi - 8]
sub edx, dword [edi - 4]
add eax, 0xffffff80
or eax, edx
jge 0x4082b3
push 0x80
call fcn.00405fc0
mov edi, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
cmp dword [edi - 8], 0x80
jl 0x4089fc
mov dword [edi - 0xc], 0x80
xor edx, edx
mov eax, dword [ecx]
mov word [eax + 0x100], dx
cmp dword [ebp - 0x450], edx
je 0x408384
cmp dword [str.ProductName], edx
je 0x408384
push 0x100
push edx
push edi
call fcn.00427180
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00427180
mov ecx, dword [ebp - 0x454]
push dword [0x44c944]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x218]
push str.StringFileInfo_04X_04X_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
mov dword [ebp - 0x434], 0
lea eax, [ebp - 0x434]
mov dword [ebp - 0x42c], 0
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x458]
call fcn.0040b804
test eax, eax
je 0x408381
test edi, edi
je 0x408381
push 0x80
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebx + 0x24]
mov eax, dword [ecx]
test eax, eax
jne 0x40838e
xor edx, edx
jmp 0x4083a7
push dword [eax - 8]
push eax
call fcn.0042be28
mov edx, eax
add esp, 8
test edx, edx
js 0x4089f2
lea ecx, [ebx + 0x24]
mov eax, dword [ecx]
cmp edx, dword [eax - 8]
jg 0x4089f2
mov dword [eax - 0xc], edx
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + edx*2], cx
push 0x34
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x450], 0
push 0
push eax
mov dword [ebp - 0x454], 0
call fcn.00427180
push dword [ebp - 0x458]
call fcn.00428d79
add esp, 0x10
mov dword [ebp - 0x458], 0
push dword [esi - 8]
push esi
call fcn.0042be28
add esp, 8
test eax, eax
js 0x4089f2
cmp eax, dword [esi - 8]
jg 0x4089f2
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
push str._EsetBootstrapperWnd
push ecx
push ecx
mov word [esi + eax*2], cx
call dword [sym.imp.USER32.dll_FindWindowExW]
or edi, 0xffffffff
test eax, eax
je 0x408585
lea ecx, [ebp - 0x444]
call fcn.00409fe0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x444]
call fcn.00409c50
push eax
lea ecx, [ebx + 0xb8]
call fcn.00409b50
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x42c], ecx
test ecx, ecx
je 0x4084ba
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4084ba
mov eax, dword [ecx + 0x78]
mov dword [ebp - 0x434], eax
test eax, eax
je 0x4084a4
mov eax, dword [eax]
push ecx
mov edi, dword [eax]
mov ecx, edi
call dword [0x44236c]
mov ecx, dword [ebp - 0x434]
jmp 0x4084b8
mov eax, dword [ecx]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x44236c]
mov ecx, dword [ebp - 0x42c]
call edi
mov byte [ebp - 4], 2
mov edi, dword [0x457774]
push 0x18
call fcn.0040e62a
add esp, 4
mov edx, eax
lea eax, [ebp - 0x444]
mov dword [edx], 0
cmp edx, eax
je 0x4084f2
mov ecx, dword [ebp - 0x444]
mov dword [edx], ecx
mov dword [ebp - 0x444], 0
mov al, byte [ebp - 0x43c]
mov byte [edx + 4], 0
mov byte [edx + 8], al
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], 0x409210
mov dword [ebp - 0x42c], edx
lea edx, [ebp - 0x42c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x438]
call fcn.0040a6e0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x42c]
test edi, edi
je 0x40854b
mov ecx, edi
call fcn.00409ce0
push 0x18
push edi
call fcn.0040e5be
add esp, 8
cmp dword [ebx + 0xb4], 0
jne 0x408a06
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x444]
mov dword [ebx + 0xb0], eax
mov eax, dword [ebp - 0x434]
mov dword [ebx + 0xb4], eax
call fcn.00409ce0
mov edi, 1
jmp 0x408960
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
and eax, 0x3ff
cmp ax, 1
je 0x4085a5
cmp ax, 0xd
je 0x4085a5
mov byte [ebx + 0x15], 0
jmp 0x4085a9
mov byte [ebx + 0x15], 1
lea eax, [ebx + 0x34]
mov dword [ebp - 0x434], eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x44236c]
lea ecx, [ebx + 0x34]
call edi
mov eax, dword [ebx + 0x34]
lea ecx, [ebx + 0x74]
mov dword [ecx], 0x14
mov dword [ecx + 4], 0x88
mov dword [ecx + 8], 0x17c
mov edi, dword [eax + 4]
mov dword [ecx + 0xc], 0x8d
push ecx
mov ecx, edi
call dword [0x44236c]
lea ecx, [ebx + 0x34]
call edi
lea edi, [ebx + 0x64]
push edi
push ecx
mov ecx, edi
call fcn.0040a470
fldz
mov edx, dword [edi + 4]
mov ecx, dword [edi]
fstp dword [ebp - 0x42c]
cmp ecx, edx
je 0x408697
fld qword [0x44cb70]
fldz
fld qword [0x44cb48]
fld qword [0x44cb88]
fld qword [0x44cb80]
jmp 0x408634
fxch st(1)
mov eax, dword [ebx + 0x7c]
sub eax, dword [ebx + 0x74]
mov dword [ebp - 0x424], eax
fild dword [ebp - 0x424]
fcom st(5)
fnstsw ax
test ah, 5
jp 0x408653
fstp st(0)
fld st(4)
fst qword [ecx + 0x38]
fld st(0)
mov dword [ecx], 0x4077c0
fmul st(5)
mov byte [ecx + 0x30], 0
fstp qword [ecx + 0x18]
fmul st(3)
fstp qword [ecx + 0x20]
fxch st(1)
fst qword [ecx + 0x10]
fld dword [ebp - 0x42c]
fld st(0)
fchs
fstp qword [ecx + 8]
add ecx, 0x40
fadd st(2)
fstp dword [ebp - 0x42c]
cmp ecx, edx
jne 0x408632
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(1)
fstp st(0)
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
mov edi, eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00427180
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x65
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [ebp - 0x420]
lea eax, [edx + 2]
lea ecx, [ebx + 0x18]
mov dword [ebp - 0x424], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4086e0
sub edx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.004060c0
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x66
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [ebp - 0x420]
lea ecx, [ebx + 0x20]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x408721
sub edx, edi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.004060c0
mov eax, dword [ebp - 0x434]
add ebx, 0x84
push ebx
mov eax, dword [eax]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0x190
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebx + 0xc], 0xd2
call dword [0x44236c]
mov ecx, dword [ebp - 0x434]
call edi
mov eax, dword [ebp - 0x448]
add eax, 0x28
mov dword [ebp - 0x424], eax
push str._EsetBootstrapperWnd
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x44236c]
mov ecx, dword [ebp - 0x424]
call edi
push 0
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x448]
push 0x80000000
push dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
push str._EsetBootstrapperWnd
push 8
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x44236c]
lea ecx, [ebx + 0x28]
call edi
push 0
push 0x20
push 1
push dword [ebx + 0x90]
push dword [ebx + 0x8c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
cmp dword [ebx + 0x2c], 0
mov dword [ebx + 0xa8], eax
jne 0x4087fd
xor edi, edi
jmp 0x408960
lea eax, [ebx + 0x28]
push ecx
mov ecx, eax
mov dword [ebx + 4], eax
call fcn.00405760
lea ecx, [ebp - 0x444]
call fcn.00409fe0
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x444]
call fcn.00409c50
push eax
lea ecx, [ebx + 0xb8]
call fcn.00409b50
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x434], ecx
test ecx, ecx
je 0x408890
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x408890
mov eax, dword [ecx + 0x78]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x40887a
mov eax, dword [eax]
push ecx
mov edi, dword [eax]
mov ecx, edi
call dword [0x44236c]
mov ecx, dword [ebp - 0x424]
jmp 0x40888e
mov eax, dword [ecx]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x44236c]
mov ecx, dword [ebp - 0x434]
call edi
mov byte [ebp - 4], 6
mov eax, dword [0x457774]
mov edi, dword [ebx + 0x2c]
push 0x18
mov dword [ebp - 0x424], eax
call fcn.0040e62a
add esp, 4
mov edx, eax
lea eax, [ebp - 0x444]
mov dword [edx], 0
cmp edx, eax
je 0x4088d0
mov ecx, dword [ebp - 0x444]
mov dword [edx], ecx
mov dword [ebp - 0x444], 0
mov al, byte [ebp - 0x43c]
mov byte [edx + 4], 0
mov byte [edx + 8], al
mov eax, dword [ebp - 0x424]
mov dword [edx + 0xc], edi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], 0x409210
mov dword [ebp - 0x434], edx
lea edx, [ebp - 0x434]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x430]
call fcn.0040a6e0
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x434]
test edi, edi
je 0x40892b
mov ecx, edi
call fcn.00409ce0
push 0x18
push edi
call fcn.0040e5be
add esp, 8
cmp dword [ebx + 0xb4], 0
jne 0x408a0b
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x444]
mov dword [ebx + 0xb0], eax
mov edi, 1
mov eax, dword [ebp - 0x42c]
mov dword [ebx + 0xb4], eax
call fcn.00409ce0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40899b
mov ebx, dword [esi]
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x424], ecx
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x408a10
mov eax, dword [ebx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x34
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.00427180
push dword [ebp - 0x458]
call fcn.00428d79
add esp, 0x10
mov eax, edi
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.0040e5ad
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404970
mov ecx, edi
call dword [0x44236c]
mov ecx, esi
call edi
jmp 0x40820e
push 0x80070057
call fcn.00404970
push 0x80070057
call fcn.00404970
call fcn.0042dd1f
call fcn.0042dd1f
call dword [0x44236c]
mov ecx, ebx
call dword [ebp - 0x424]
jmp 0x40899b