Function at 0x4203c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca8c
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x463188]
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 edi, ecx
mov dword [ebp - 0x454], edi
push 0x800
call dword [0x46304c]
push 0x208
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.0042c0e0
add esp, 0xc
lea eax, [ebp - 0x438]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4204be
push 0x45b22c
lea eax, [ebp - 0x438]
push 0x104
push eax
call fcn.00437b68
lea ecx, [ebp - 0x438]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420453
sub ecx, edx
mov dword [ebp - 0x46c], str.version.dll
sar ecx, 1
lea edi, [ebp - 0x438]
mov ebx, 0x104
mov dword [ebp - 0x468], str.cabinet.dll
xor esi, esi
sub ebx, ecx
lea edi, [edi + ecx*2]
jmp 0x420490
push dword [ebp + esi*4 - 0x46c]
push ebx
push edi
call fcn.00437bdd
add esp, 0xc
test eax, eax
jne 0x4204b2
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc esi
cmp esi, 2
jb 0x420490
mov edi, dword [ebp - 0x454]
push 0
push 0x4ff
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call fcn.00420f20
push eax
mov dword [0x465be0], eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
movzx eax, word [0x465be0]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 0x34
lea eax, [ebp - 0x4ac]
mov dword [ebp - method.eset::CFileVersionInfo.virtual_0], vtable.eset::CFileVersionInfo.0
push 0
push eax
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x474], 0
call fcn.0042c0e0
push dword [ebp - 0x478]
call fcn.0042e72f
add esp, 0x10
mov dword [ebp - 0x478], 0
mov dword [ebp - 4], 1
call fcn.0041b9d0
mov ebx, eax
test ebx, ebx
je 0x420d9c
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x44e360]
mov ecx, ebx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x464], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x420598
push 0x104
lea ecx, [ebp - 0x464]
call fcn.0041d190
mov esi, dword [ebp - 0x464]
cmp dword [esi - 8], 0x104
lea ebx, [esi - 0x10]
mov dword [ebp - 0x468], ebx
jl 0x420d92
push 0x104
xor eax, eax
mov dword [ebx + 4], 0x104
push esi
push eax
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4206b6
push esi
lea ecx, [ebp - 0x4b0]
call fcn.0041d730
test eax, eax
je 0x42067a
mov ecx, dword [edi + 0x28]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
add eax, 0xffffff80
or eax, edx
jge 0x42060c
push 0x80
lea ecx, [edi + 0x28]
call fcn.0041d190
mov ecx, dword [edi + 0x28]
cmp dword [ecx - 8], 0x80
jl 0x420d92
mov dword [ecx - 0xc], 0x80
xor edx, edx
mov eax, dword [edi + 0x28]
push 0x80
push ecx
push ecx
lea ecx, [ebp - 0x4b0]
mov word [eax + 0x100], dx
call fcn.0041d870
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x420649
xor ecx, ecx
jmp 0x42065f
push dword [eax - 8]
push eax
call fcn.00438982
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x420d92
mov eax, dword [edi + 0x28]
cmp ecx, dword [eax - 8]
jg 0x420d92
mov dword [eax - 0xc], ecx
lea ebx, [esi - 0x10]
mov eax, dword [edi + 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
push 0x34
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x470], 0
push 0
push eax
mov dword [ebp - 0x474], 0
call fcn.0042c0e0
push dword [ebp - 0x478]
call fcn.0042e72f
add esp, 0x10
mov dword [ebp - 0x478], 0
push dword [ebx + 8]
push esi
call fcn.00438982
add esp, 8
test eax, eax
js 0x420d92
cmp eax, dword [ebx + 8]
jg 0x420d92
xor ecx, ecx
mov dword [ebx + 4], eax
push ecx
push str._EsetBootstrapperWnd
push ecx
push ecx
mov word [esi + eax*2], cx
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x4207d8
lea ecx, [ebp - 0x20]
call fcn.00422db0
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x20]
call fcn.00422ac0
lea ecx, [edi + 0xc0]
push eax
mov byte [ebp - 4], 4
call fcn.00423320
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.00422e30
mov esi, dword [0x465bf4]
push 0x18
call fcn.00429a94
add esp, 4
mov edx, eax
lea eax, [ebp - 0x20]
mov dword [edx], 0
cmp edx, eax
je 0x420757
mov ecx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x18]
mov byte [edx + 4], 0
mov byte [edx + 8], al
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], esi
mov dword [edx + 0x14], 0x4217d0
mov dword [ebp - 0x454], edx
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 6
push eax
push 0
push edx
push 0x4238f0
push 0
push 0
call fcn.00438ccc
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x460], ecx
test ecx, ecx
je 0x420dab
cmp dword [edi + 0xbc], 0
jne 0x420da6
mov eax, dword [ebp - 0x45c]
mov dword [edi + 0xb8], ecx
lea ecx, [ebp - 0x20]
mov dword [edi + 0xbc], eax
call fcn.00422b40
mov ebx, 1
jmp 0x420d2f
add edi, 0xc8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea esi, [ebp - 0x13]
lea esp, [esp]
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x4207f0
lea eax, [ebp - 0x13]
mov dword [ebp - 0x450], edx
mov dword [ebp - 0x440], edx
mov ecx, 0xf
mov dword [ebp - 0x43c], ecx
mov byte [ebp - 0x450], dl
cmp esi, eax
je 0x42084b
sub eax, esi
lea ecx, [ebp - 0x450]
push eax
push esi
call fcn.0040a0e0
mov ecx, dword [ebp - 0x43c]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x450]
mov dword [ebp - 0x45c], eax
cmp ecx, 0x10
jb 0x42086c
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x45c], eax
cmp byte [edi + 0x40], 0
lea esi, [edi + 0x10]
je 0x4208c0
sub esp, 8
mov ecx, esi
call fcn.00423270
cmp dword [esi + 0x10], eax
jb 0x420dc1
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x420892
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
lea ebx, [edi + 0x28]
sub esp, 8
mov byte [ecx + eax], 0
mov ecx, ebx
call fcn.00423270
cmp dword [ebx + 0x10], eax
lea ecx, [ebx + 0x10]
jb 0x420dc1
cmp dword [ebx + 0x14], 0x10
jb 0x4208ba
mov ebx, dword [ebx]
mov dword [ecx], eax
mov byte [ebx + eax], 0
push 1
push 0x45cb2c
mov ecx, esi
call fcn.004148f0
mov ebx, dword [ebp - 0x45c]
mov edx, ebx
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x4208e0
sub edx, ecx
mov ecx, esi
push edx
push ebx
call fcn.004148f0
push 1
push 0x45cb2c
lea ecx, [edi + 0x28]
call fcn.004148f0
mov edx, ebx
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x420906
sub edx, ecx
lea ecx, [edi + 0x28]
push edx
push ebx
call fcn.004148f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x43c]
mov byte [edi + 0x40], 1
cmp edx, 0x10
jb 0x42095b
mov ecx, dword [ebp - 0x450]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420951
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420dbc
push edx
push ecx
call fcn.00429a23
add esp, 8
mov ecx, edi
call fcn.0041f020
mov eax, dword [0x465be0]
and eax, 0x3ff
cmp ax, 1
je 0x42097c
cmp ax, 0xd
je 0x42097c
xor al, al
jmp 0x42097e
mov al, 1
mov ebx, dword [ebp - 0x454]
mov byte [ebx + 0x19], al
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
mov ecx, esi
call dword [0x44e360]
lea ecx, [ebx + 0x3c]
call esi
mov eax, dword [ebx + 0x3c]
lea ecx, [ebx + 0x7c]
mov dword [ecx], 0x14
mov dword [ecx + 4], 0x88
mov dword [ecx + 8], 0x17c
mov esi, dword [eax + 4]
mov dword [ecx + 0xc], 0x8d
push ecx
mov ecx, esi
call dword [0x44e360]
lea ecx, [ebx + 0x3c]
call esi
mov esi, dword [ebx + 0x70]
lea edi, [ebx + 0x6c]
mov edx, dword [edi]
mov ecx, esi
sub ecx, edx
sar ecx, 6
cmp ecx, 7
jbe 0x4209e7
lea esi, [edx + 0x1c0]
jmp 0x420a27
jae 0x420a2a
mov eax, dword [edi + 8]
sub eax, edx
sar eax, 6
cmp eax, 7
jae 0x420a05
sub esp, 8
mov ecx, edi
call fcn.00423690
mov esi, dword [edi + 4]
jmp 0x420a2a
mov edi, 7
sub edi, ecx
je 0x420a24
mov eax, edi
shl eax, 6
push eax
push 0
push esi
call fcn.0042c0e0
shl edi, 6
add esp, 0xc
add esi, edi
lea edi, [ebx + 0x6c]
mov dword [edi + 4], esi
fldz
mov ecx, dword [edi]
fstp dword [ebp - 0x454]
cmp ecx, esi
je 0x420ac0
fld qword [0x45d648]
fldz
fld qword [0x45d610]
fld qword [0x45d660]
fld qword [0x45d658]
jmp 0x420a5a
fxch st(1)
mov eax, dword [ebx + 0x84]
sub eax, dword [ebx + 0x7c]
mov dword [ebp - 0x45c], eax
fild dword [ebp - 0x45c]
fcom st(5)
fnstsw ax
test ah, 5
jp 0x420a7c
fstp st(0)
fld st(4)
fst qword [ecx + 0x38]
fld st(0)
mov dword [ecx], 0x41fa30
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 - 0x454]
fld st(0)
fchs
fstp qword [ecx + 8]
add ecx, 0x40
fadd st(2)
fstp dword [ebp - 0x454]
cmp ecx, esi
jne 0x420a58
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(1)
fstp st(0)
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
lea eax, [ebp - 0x230]
push 0x208
push 0
push eax
mov dword [ebp - 0x454], esi
call fcn.0042c0e0
lea eax, [ebp - 0x230]
mov edx, 0x82
push 0x104
push eax
mov ecx, esi
call fcn.004239d0
lea edx, [ebp - 0x230]
add esp, 0x14
lea ecx, [ebx + 0x1c]
lea edi, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x420b10
sub edx, edi
lea eax, [ebp - 0x230]
sar edx, 1
push edx
push eax
call fcn.0041d200
lea eax, [ebp - 0x230]
mov edx, 0x83
push 0x104
push eax
mov ecx, esi
call fcn.004239d0
lea edx, [ebp - 0x230]
add esp, 8
lea ecx, [ebx + 0x24]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x420b53
sub edx, esi
lea eax, [ebp - 0x230]
sar edx, 1
push edx
push eax
call fcn.0041d200
mov eax, dword [ebx + 0x3c]
lea edi, [ebx + 0x8c]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0x190
mov esi, dword [eax + 4]
mov ecx, esi
push edi
mov dword [edi + 0xc], 0xd2
call dword [0x44e360]
lea ecx, [ebx + 0x3c]
call esi
mov eax, dword [ebx + 0x2c]
push str._EsetBootstrapperWnd
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x44e360]
lea ecx, [ebx + 0x2c]
call esi
mov eax, dword [ebx + 0x2c]
push 0
push 0
push 0
mov esi, dword [eax + 0x24]
mov ecx, esi
push edi
push 0x80000000
push dword [ebx + 0x28]
push str._EsetBootstrapperWnd
push 8
call dword [0x44e360]
lea edi, [ebx + 0x2c]
mov ecx, edi
call esi
push 0
push 0x20
push 1
push dword [ebx + 0x98]
push dword [ebx + 0x94]
call dword [sym.imp.GDI32.dll_CreateBitmap]
push 0x65
push dword [ebp - 0x454]
mov dword [ebx + 0xb0], eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
push esi
push 1
push 0x80
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0
push 0x80
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx + 0x30], 0
jne 0x420c44
xor ebx, ebx
jmp 0x420d2f
push ecx
mov ecx, edi
mov dword [ebx + 4], edi
call fcn.0041c2c0
lea ecx, [ebp - 0x20]
call fcn.00422db0
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x20]
call fcn.00422ac0
lea ecx, [ebx + 0xc0]
push eax
mov byte [ebp - 4], 9
call fcn.00423320
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 8
call fcn.00422e30
mov esi, dword [ebx + 0x30]
mov edi, dword [0x465bf4]
push 0x18
call fcn.00429a94
add esp, 4
mov edx, eax
lea eax, [ebp - 0x20]
mov dword [edx], 0
cmp edx, eax
je 0x420cb7
mov ecx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x18]
mov byte [edx + 4], 0
mov byte [edx + 8], al
mov dword [edx + 0xc], esi
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], 0x4217d0
mov dword [ebp - 0x454], edx
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 0xb
push eax
push 0
push edx
push 0x4238f0
push 0
push 0
call fcn.00438ccc
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x460], ecx
test ecx, ecx
je 0x420dab
cmp dword [ebx + 0xbc], 0
jne 0x420dc6
mov eax, dword [ebp - 0x45c]
mov dword [ebx + 0xb8], ecx
lea ecx, [ebp - 0x20]
mov dword [ebx + 0xbc], eax
mov ebx, 1
call fcn.00422b40
mov ecx, dword [ebp - 0x468]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x420d56
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x44e360]
mov ecx, edi
call esi
push 0x34
lea eax, [ebp - 0x4ac]
push 0
push eax
call fcn.0042c0e0
push dword [ebp - 0x478]
call fcn.0042e72f
add esp, 0x10
mov eax, ebx
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.004299ea
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041b780
push 0x80004005
call fcn.0041b780
call fcn.00438b32
push 6
mov dword [ebp - 0x45c], 0
call fcn.004282ea
call fcn.0042e9c4
call fcn.00402780
call fcn.00438b32
int3