Function at 0x41ea40
Capabilities:
Create thread
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4601df
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x47d144]
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 - 0x458], edi
push 0x800
call dword [0x47d0fc]
push 0x208
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.00440840
add esp, 0xc
lea eax, [ebp - 0x438]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41eb3e
push 0x471e4c
lea eax, [ebp - 0x438]
push 0x104
push eax
call fcn.00447669
lea ecx, [ebp - 0x438]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ead3
sub ecx, edx
mov dword [ebp - 0x478], str.version.dll
sar ecx, 1
lea edi, [ebp - 0x438]
mov ebx, 0x104
mov dword [ebp - 0x474], str.cabinet.dll
xor esi, esi
sub ebx, ecx
lea edi, [edi + ecx*2]
jmp 0x41eb10
push dword [ebp + esi*4 - 0x478]
push ebx
push edi
call fcn.004476de
add esp, 0xc
test eax, eax
jne 0x41eb32
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc esi
cmp esi, 2
jb 0x41eb10
mov edi, dword [ebp - 0x458]
push 0
push 0x4ff
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call fcn.0041f690
push eax
mov dword [0x480d18], eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
movzx eax, word [0x480d18]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 0x34
lea eax, [ebp - 0x4c4]
mov dword [ebp - method.eset::CFileVersionInfo.virtual_0], vtable.eset::CFileVersionInfo.0
push 0
push eax
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x48c], 0
call fcn.00440840
push dword [ebp - 0x490]
call fcn.00443ae6
add esp, 0x10
mov dword [ebp - 0x490], 0
mov dword [ebp - 4], 1
call fcn.0041ab30
mov ebx, eax
test ebx, ebx
je 0x41f50e
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4623b8]
mov ecx, ebx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x460], 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 0x41ec18
push 0x104
lea ecx, [ebp - 0x460]
call fcn.0041c2e0
mov esi, dword [ebp - 0x460]
cmp dword [esi - 8], 0x104
lea ebx, [esi - 0x10]
mov dword [ebp - 0x474], ebx
jl 0x41f504
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 0x41ed36
push esi
lea ecx, [ebp - 0x4c8]
call fcn.0041c880
test eax, eax
je 0x41ecfa
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 0x41ec8c
push 0x80
lea ecx, [edi + 0x28]
call fcn.0041c2e0
mov ecx, dword [edi + 0x28]
cmp dword [ecx - 8], 0x80
jl 0x41f504
mov dword [ecx - 0xc], 0x80
xor edx, edx
mov eax, dword [edi + 0x28]
push 0x80
push ecx
push ecx
lea ecx, [ebp - 0x4c8]
mov word [eax + 0x100], dx
call fcn.0041c9c0
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x41ecc9
xor ecx, ecx
jmp 0x41ecdf
push dword [eax - 8]
push eax
call fcn.0044bf1e
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41f504
mov eax, dword [edi + 0x28]
cmp ecx, dword [eax - 8]
jg 0x41f504
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 - 0x4c4]
mov dword [ebp - 0x488], 0
push 0
push eax
mov dword [ebp - 0x48c], 0
call fcn.00440840
push dword [ebp - 0x490]
call fcn.00443ae6
add esp, 0x10
mov dword [ebp - 0x490], 0
push dword [ebx + 8]
push esi
call fcn.0044bf1e
add esp, 8
test eax, eax
js 0x41f504
cmp eax, dword [ebx + 8]
jg 0x41f504
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]
or esi, 0xffffffff
test eax, eax
je 0x41eec5
lea ecx, [ebp - 0x20]
call fcn.00421640
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004217b0
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x468], 0
cmp ecx, eax
je 0x41edaf
mov ecx, dword [eax]
test ecx, ecx
je 0x41edaf
lock inc dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x468], eax
mov byte [ebp - 0x464], 1
lea ecx, [edi + 0xc0]
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 4
push eax
call fcn.00421d00
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x468]
test ebx, ebx
je 0x41ee17
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x41ee17
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x454], eax
test eax, eax
je 0x41ee05
mov eax, dword [eax]
push ebx
mov esi, dword [eax]
mov ecx, esi
call dword [0x4623b8]
mov ecx, dword [ebp - 0x454]
jmp 0x41ee15
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4623b8]
mov ecx, ebx
call esi
mov byte [ebp - 4], 3
mov esi, dword [0x480d24]
push 0x18
call fcn.00428263
add esp, 4
mov edx, eax
lea eax, [ebp - 0x20]
mov dword [edx], 0
cmp edx, eax
je 0x41ee46
mov ecx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [ebp - 0x20], 0
mov byte [edx + 4], 0
mov al, byte [ebp - 0x18]
mov byte [edx + 8], al
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], esi
mov dword [edx + 0x14], 0x41ff30
mov dword [ebp - 0x454], edx
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 7
push eax
push 0
push edx
push 0x422030
push 0
push 0
call fcn.0044c28c
add esp, 0x18
mov dword [ebp - 0x45c], eax
test eax, eax
je 0x41f51d
cmp dword [edi + 0xbc], 0
jne 0x41f518
mov dword [edi + 0xb8], eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x458]
mov dword [edi + 0xbc], eax
call fcn.004213c0
mov ebx, 1
jmp 0x41f4a1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea esi, [ebp - 0x13]
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 0x41eed0
lea eax, [ebp - 0x13]
mov dword [ebp - 0x440], edx
mov byte [ebp - 0x450], dl
mov ecx, 0xf
mov dword [ebp - 0x43c], ecx
cmp esi, eax
je 0x41ef25
sub eax, esi
lea ecx, [ebp - 0x450]
push eax
push esi
call fcn.00413960
mov ecx, dword [ebp - 0x43c]
mov byte [ebp - 4], 8
lea eax, [ebp - 0x450]
mov dword [ebp - 0x454], eax
cmp ecx, 0x10
jb 0x41ef46
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x454], eax
mov ebx, dword [ebp - 0x458]
cmp byte [ebx + 0x108], 0
lea esi, [ebx + 0xd8]
je 0x41efa9
sub esp, 8
mov ecx, esi
call fcn.00421c50
cmp dword [esi + 0x10], eax
jb 0x41f533
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x41ef78
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
lea edi, [ebx + 0xf0]
sub esp, 8
mov byte [ecx + eax], 0
mov ecx, edi
call fcn.00421c50
cmp dword [edi + 0x10], eax
lea ecx, [edi + 0x10]
jb 0x41f533
cmp dword [edi + 0x14], 0x10
jb 0x41efa3
mov edi, dword [edi]
mov dword [ecx], eax
mov byte [edi + eax], 0
push 1
push 0x4736ac
mov ecx, esi
call fcn.00413a60
mov edi, dword [ebp - 0x454]
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x41efc2
sub edx, ecx
mov ecx, esi
push edx
push edi
call fcn.00413a60
push 1
push 0x4736ac
lea ecx, [ebx + 0xf0]
call fcn.00413a60
mov edx, edi
lea ecx, [edx + 1]
jmp 0x41eff0
mov al, byte [edx]
inc edx
test al, al
jne 0x41eff0
sub edx, ecx
lea ecx, [ebx + 0xf0]
push edx
push edi
call fcn.00413a60
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x43c]
mov byte [ebx + 0x108], 1
cmp edx, 0x10
jb 0x41f04b
mov ecx, dword [ebp - 0x450]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41f041
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f52e
push edx
push ecx
call fcn.004281c2
add esp, 8
lea ecx, [ebx + 0xc8]
call fcn.0041d6b0
mov eax, dword [0x480d18]
and eax, 0x3ff
cmp ax, 1
je 0x41f070
cmp ax, 0xd
je 0x41f070
xor al, al
jmp 0x41f072
mov al, 1
mov byte [ebx + 0x19], al
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4623b8]
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 [0x4623b8]
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 0x41f0d5
lea esi, [edx + 0x1c0]
jmp 0x41f115
jae 0x41f118
mov eax, dword [edi + 8]
sub eax, edx
sar eax, 6
cmp eax, 7
jae 0x41f0f3
sub esp, 8
mov ecx, edi
call fcn.004220e0
mov esi, dword [edi + 4]
jmp 0x41f118
mov edi, 7
sub edi, ecx
je 0x41f112
mov eax, edi
shl eax, 6
push eax
push 0
push esi
call fcn.00440840
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 0x41f1ae
fld qword [0x474100]
fldz
fld qword [0x4740c8]
fld qword [0x474118]
fld qword [0x474110]
jmp 0x41f148
fxch st(1)
mov eax, dword [ebx + 0x84]
sub eax, dword [ebx + 0x7c]
mov dword [ebp - 0x458], eax
fild dword [ebp - 0x458]
fcom st(5)
fnstsw ax
test ah, 5
jp 0x41f16a
fstp st(0)
fld st(4)
fst qword [ecx + 0x38]
fld st(0)
mov dword [ecx], 0x41e0c0
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 0x41f146
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.00440840
lea eax, [ebp - 0x230]
mov edx, 0x82
push 0x104
push eax
mov ecx, esi
call fcn.004222e0
lea edx, [ebp - 0x230]
add esp, 0x14
lea ecx, [ebx + 0x1c]
lea edi, [edx + 2]
jmp 0x41f200
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41f200
sub edx, edi
lea eax, [ebp - 0x230]
sar edx, 1
push edx
push eax
call fcn.0041c350
lea eax, [ebp - 0x230]
mov edx, 0x83
push 0x104
push eax
mov ecx, esi
call fcn.004222e0
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 0x41f243
sub edx, esi
lea eax, [ebp - 0x230]
sar edx, 1
push edx
push eax
call fcn.0041c350
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 [0x4623b8]
lea ecx, [ebx + 0x3c]
call esi
mov eax, dword [ebx + 0x2c]
push str._EsetBootstrapperWnd
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4623b8]
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 [0x4623b8]
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 0x41f334
xor ebx, ebx
jmp 0x41f4a1
push ecx
mov ecx, edi
mov dword [ebx + 4], edi
call fcn.0041b410
lea ecx, [ebp - 0x484]
call fcn.00421640
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 9
call fcn.004217b0
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x470], 0
cmp ecx, eax
je 0x41f37f
mov ecx, dword [eax]
test ecx, ecx
je 0x41f37f
lock inc dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x470], eax
mov byte [ebp - 0x46c], 1
lea ecx, [ebx + 0xc0]
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 0xa
push eax
call fcn.00421d00
mov byte [ebp - 4], 0xb
or esi, 0xffffffff
mov edi, dword [ebp - 0x470]
test edi, edi
je 0x41f3ea
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x41f3ea
mov eax, dword [edi + 0x78]
mov dword [ebp - 0x454], eax
test eax, eax
je 0x41f3d8
mov eax, dword [eax]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x4623b8]
mov ecx, dword [ebp - 0x454]
jmp 0x41f3e8
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4623b8]
mov ecx, edi
call esi
mov byte [ebp - 4], 9
mov esi, dword [ebx + 0x30]
mov edi, dword [0x480d24]
push 0x18
call fcn.00428263
add esp, 4
mov edx, eax
lea eax, [ebp - 0x484]
mov dword [edx], 0
cmp edx, eax
je 0x41f425
mov ecx, dword [ebp - 0x484]
mov dword [edx], ecx
mov dword [ebp - 0x484], 0
mov byte [edx + 4], 0
mov al, byte [ebp - 0x47c]
mov byte [edx + 8], al
mov dword [edx + 0xc], esi
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], 0x41ff30
mov dword [ebp - 0x454], edx
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 0xd
push eax
push 0
push edx
push 0x422030
push 0
push 0
call fcn.0044c28c
add esp, 0x18
mov dword [ebp - 0x45c], eax
test eax, eax
je 0x41f51d
cmp dword [ebx + 0xbc], 0
jne 0x41f538
mov dword [ebx + 0xb8], eax
lea ecx, [ebp - 0x484]
mov eax, dword [ebp - 0x458]
mov dword [ebx + 0xbc], eax
mov ebx, 1
call fcn.004213c0
mov ecx, dword [ebp - 0x474]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41f4c8
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4623b8]
mov ecx, edi
call esi
push 0x34
lea eax, [ebp - 0x4c4]
push 0
push eax
call fcn.00440840
push dword [ebp - 0x490]
call fcn.00443ae6
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.004281b1
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041a8e0
push 0x80004005
call fcn.0041a8e0
call fcn.0044c0ef
push 6
mov dword [ebp - 0x458], 0
call fcn.0042634a
call fcn.00443d74
call fcn.00402700
call fcn.0044c0ef
int3